Skip to content

Commit

Permalink
Update accent color for Checkbox, RadioButton and Switch compon…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
jmartinesp committed Oct 23, 2024
1 parent f1e8d3f commit 0f89dc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ fun Switch(
internal fun compoundSwitchColors() = SwitchDefaults.colors(
uncheckedThumbColor = ElementTheme.colors.bgActionPrimaryRest,
uncheckedTrackColor = Color.Transparent,
checkedTrackColor = ElementTheme.colors.bgAccentRest,
disabledUncheckedBorderColor = ElementTheme.colors.borderDisabled,
disabledUncheckedThumbColor = ElementTheme.colors.iconDisabled,
disabledCheckedTrackColor = ElementTheme.colors.iconDisabled,
Expand Down

0 comments on commit 0f89dc1

Please sign in to comment.