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:
parent
14fae6cac3
commit
384c4a55da
210 changed files with 418 additions and 415 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue