Use primary color for excluded tristate filter icon (fixes #7360)

(cherry picked from commit 3ca1ce4636)
(cherry picked from commit d2e40a0749)
This commit is contained in:
arkon
2022-06-25 22:34:48 -04:00
committed by Jobobby04
parent 9af0d40479
commit c6896d87d6
@@ -42,10 +42,10 @@ open class TriStateItem(val filter: Filter.TriState) : AbstractFlexibleItem<TriS
else -> 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)