From 7818885406d2e6f82ba84c506d562edc170ce6ff Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 30 Oct 2022 22:19:02 -0400 Subject: [PATCH] Use proper content color for filter icon in library toolbar --- .../kanade/presentation/library/components/LibraryToolbar.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt b/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt index f8f3f390a9..b44f9cedb8 100644 --- a/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt +++ b/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt @@ -77,7 +77,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) { @@ -99,9 +98,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)) },