From 4c3eb68d3ac2779d4f1a60d6d833d0f90e0461e9 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 25 Jun 2022 22:34:48 -0400 Subject: [PATCH] Use primary color for excluded tristate filter icon (fixes #7360) (cherry picked from commit 3ca1ce463696e2e8eabf63c1e729dbdd2ffe1f71) --- .../tachiyomi/ui/browse/source/filter/TriStateItem.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/filter/TriStateItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/filter/TriStateItem.kt index 2eed3e7a8..04e4e1edc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/filter/TriStateItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/filter/TriStateItem.kt @@ -42,10 +42,10 @@ open class TriStateItem(val filter: Filter.TriState) : AbstractFlexibleItem throw Exception("Unknown state") }, )?.apply { - val color = if (filter.state == Filter.TriState.STATE_INCLUDE) { - view.context.getResourceColor(R.attr.colorAccent) - } else { + val color = if (filter.state == Filter.TriState.STATE_IGNORE) { view.context.getResourceColor(R.attr.colorOnBackground, 0.38f) + } else { + view.context.getResourceColor(R.attr.colorPrimary) } setTint(color)