Skip to content

Commit 384c4a5

Browse files
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 <[email protected]>
1 parent 14fae6c commit 384c4a5

File tree

210 files changed

+418
-415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+418
-415
lines changed

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/Checkbox.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fun Checkbox(
5959
@Composable
6060
private fun compoundCheckBoxColors(): CheckboxColors {
6161
return CheckboxDefaults.colors(
62-
checkedColor = ElementTheme.materialColors.primary,
62+
checkedColor = ElementTheme.colors.bgAccentRest,
6363
uncheckedColor = ElementTheme.colors.borderInteractivePrimary,
6464
checkmarkColor = ElementTheme.materialColors.onPrimary,
6565
disabledUncheckedColor = ElementTheme.colors.borderDisabled,

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/RadioButton.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ fun RadioButton(
5151
internal fun compoundRadioButtonColors(): RadioButtonColors {
5252
return RadioButtonDefaults.colors(
5353
unselectedColor = ElementTheme.colors.borderInteractivePrimary,
54+
selectedColor = ElementTheme.colors.bgAccentRest,
5455
disabledUnselectedColor = ElementTheme.colors.borderDisabled,
5556
disabledSelectedColor = ElementTheme.colors.iconDisabled,
5657
)

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/Switch.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ fun Switch(
5454

5555
@Composable
5656
internal fun compoundSwitchColors() = SwitchDefaults.colors(
57-
uncheckedThumbColor = ElementTheme.colors.bgActionPrimaryRest,
57+
uncheckedThumbColor = ElementTheme.colors.iconSecondary,
58+
uncheckedBorderColor = ElementTheme.colors.borderInteractivePrimary,
5859
uncheckedTrackColor = Color.Transparent,
60+
checkedTrackColor = ElementTheme.colors.bgAccentRest,
5961
disabledUncheckedBorderColor = ElementTheme.colors.borderDisabled,
6062
disabledUncheckedThumbColor = ElementTheme.colors.iconDisabled,
6163
disabledCheckedTrackColor = ElementTheme.colors.iconDisabled,
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)