Use proper content color for filter icon in library toolbar

(cherry picked from commit 7818885406d2e6f82ba84c506d562edc170ce6ff)
This commit is contained in:
arkon 2022-10-30 22:19:02 -04:00 committed by Jobobby04
parent db890c33f7
commit 2f6bd9754d

View File

@ -86,7 +86,6 @@ fun LibraryRegularToolbar(
scrollBehavior: TopAppBarScrollBehavior?,
) {
val pillAlpha = if (isSystemInDarkTheme()) 0.12f else 0.08f
val filterTint = if (hasFilters) MaterialTheme.colorScheme.active else LocalContentColor.current
SearchToolbar(
titleContent = {
Row(verticalAlignment = Alignment.CenterVertically) {
@ -108,9 +107,11 @@ fun LibraryRegularToolbar(
searchQuery = searchQuery,
onChangeSearchQuery = onChangeSearchQuery,
actions = {
val filterTint = if (hasFilters) MaterialTheme.colorScheme.active else LocalContentColor.current
IconButton(onClick = onClickFilter) {
Icon(Icons.Outlined.FilterList, contentDescription = stringResource(R.string.action_filter), tint = filterTint)
}
OverflowMenu { closeMenu ->
DropdownMenuItem(
text = { Text(text = stringResource(R.string.pref_category_library_update)) },