mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 20:03:17 -05:00
Use primary color for excluded tristate filter icon (fixes #7360)
This commit is contained in:
parent
8ec91cddab
commit
3ca1ce4636
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue