mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01: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) {
|
fun themeCheckbox(checkbox: CheckBox) {
|
||||||
withElementColor(checkbox) { color ->
|
withElementColor(checkbox) { color ->
|
||||||
checkbox.setTextColor(color)
|
checkbox.buttonTintList = ColorStateList(
|
||||||
checkbox.buttonTintList = ColorStateList.valueOf(color)
|
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