Skip to content

Commit

Permalink
Switch color update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Aug 15, 2024
1 parent c7e8aa0 commit 1d03e4c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,16 @@ fun mullvadSwitchColors(): SwitchColors =
SwitchDefaults.colors(
checkedThumbColor = MaterialTheme.colorScheme.selected,
checkedTrackColor = Color.Transparent,
checkedBorderColor = MaterialTheme.colorScheme.onSurface,
// checkedIconColor= SwitchTokens.SelectedIconColor.toColor(),
checkedBorderColor = MaterialTheme.colorScheme.onPrimary,
uncheckedThumbColor = MaterialTheme.colorScheme.error,
uncheckedTrackColor = Color.Transparent,
uncheckedBorderColor = MaterialTheme.colorScheme.onSurface,
// uncheckedIconColor= SwitchTokens.UnselectedIconColor.toColor(),
uncheckedBorderColor = MaterialTheme.colorScheme.onPrimary,
disabledCheckedThumbColor = MaterialTheme.colorScheme.selected.copy(alpha = AlphaDisabled),
disabledCheckedTrackColor = Color.Transparent,
disabledCheckedBorderColor =
MaterialTheme.colorScheme.onSurface.copy(alpha = AlphaDisabled),
MaterialTheme.colorScheme.onPrimary.copy(alpha = AlphaDisabled),
disabledUncheckedThumbColor = MaterialTheme.colorScheme.error.copy(alpha = AlphaDisabled),
disabledUncheckedTrackColor = Color.Transparent,
disabledUncheckedBorderColor =
MaterialTheme.colorScheme.onSurface.copy(alpha = AlphaDisabled)
MaterialTheme.colorScheme.onPrimary.copy(alpha = AlphaDisabled)
)

0 comments on commit 1d03e4c

Please sign in to comment.