From 1d03e4c99aba5f3bc75525d830b8da765b36e1e7 Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Thu, 15 Aug 2024 12:52:50 +0200 Subject: [PATCH] Switch color update --- .../net/mullvad/mullvadvpn/compose/component/Switch.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Switch.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Switch.kt index e055270ef924..557e2f3a54d2 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Switch.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/Switch.kt @@ -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) )