Update accent color for Checkbox, RadioButton and Switch components (#3728)

* Update accent color for `Checkbox`, `RadioButton` and `Switch` components

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
Jorge Martin Espinosa
2024-10-24 11:14:15 +02:00
committed by GitHub
parent 4616bc3ab0
commit dcfe595076
210 changed files with 418 additions and 415 deletions

View File

@@ -59,7 +59,7 @@ fun Checkbox(
@Composable
private fun compoundCheckBoxColors(): CheckboxColors {
return CheckboxDefaults.colors(
checkedColor = ElementTheme.materialColors.primary,
checkedColor = ElementTheme.colors.bgAccentRest,
uncheckedColor = ElementTheme.colors.borderInteractivePrimary,
checkmarkColor = ElementTheme.materialColors.onPrimary,
disabledUncheckedColor = ElementTheme.colors.borderDisabled,

View File

@@ -51,6 +51,7 @@ fun RadioButton(
internal fun compoundRadioButtonColors(): RadioButtonColors {
return RadioButtonDefaults.colors(
unselectedColor = ElementTheme.colors.borderInteractivePrimary,
selectedColor = ElementTheme.colors.bgAccentRest,
disabledUnselectedColor = ElementTheme.colors.borderDisabled,
disabledSelectedColor = ElementTheme.colors.iconDisabled,
)

View File

@@ -54,8 +54,10 @@ fun Switch(
@Composable
internal fun compoundSwitchColors() = SwitchDefaults.colors(
uncheckedThumbColor = ElementTheme.colors.bgActionPrimaryRest,
uncheckedThumbColor = ElementTheme.colors.iconSecondary,
uncheckedBorderColor = ElementTheme.colors.borderInteractivePrimary,
uncheckedTrackColor = Color.Transparent,
checkedTrackColor = ElementTheme.colors.bgAccentRest,
disabledUncheckedBorderColor = ElementTheme.colors.borderDisabled,
disabledUncheckedThumbColor = ElementTheme.colors.iconDisabled,
disabledCheckedTrackColor = ElementTheme.colors.iconDisabled,

Some files were not shown because too many files have changed in this diff Show More