mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
add proper checkbox- state coloring
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
7ec78e53f0
commit
aef9b69175
@ -183,8 +183,13 @@ class ViewThemeUtils @Inject constructor(private val theme: ServerTheme) {
|
||||
|
||||
fun themeCheckbox(checkbox: CheckBox) {
|
||||
withElementColor(checkbox) { color ->
|
||||
checkbox.setTextColor(color)
|
||||
checkbox.buttonTintList = ColorStateList.valueOf(color)
|
||||
checkbox.buttonTintList = ColorStateList(
|
||||
arrayOf(
|
||||
intArrayOf(-android.R.attr.state_checked),
|
||||
intArrayOf(android.R.attr.state_checked),
|
||||
),
|
||||
intArrayOf(Color.GRAY, color)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user