From f937925fbf51278b58a0bd91ebd1f94cebce4383 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 17 Jul 2026 04:03:01 +0000 Subject: [PATCH] fix(theme): route new UI-Preferences toggle through AmethystSwitch The modernized UI Preferences screen (merged from main) added a raw Switch, which would show the old pale checked colors. Point it at AmethystSwitch like every other toggle so it picks up the deep filledAccent fill. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01EVwY2Qzth2EREWg8qLhyzF --- .../amethyst/ui/screen/loggedIn/settings/AppSettingsScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/AppSettingsScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/AppSettingsScreen.kt index 2b1176b603..bb34f9c018 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/AppSettingsScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/settings/AppSettingsScreen.kt @@ -47,7 +47,6 @@ import androidx.compose.material3.Scaffold import androidx.compose.material3.SegmentedButton import androidx.compose.material3.SegmentedButtonDefaults import androidx.compose.material3.SingleChoiceSegmentedButtonRow -import androidx.compose.material3.Switch import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState @@ -90,6 +89,7 @@ import com.vitorpamplona.amethyst.ui.navigation.navs.INav import com.vitorpamplona.amethyst.ui.navigation.topbars.TopBarWithBackButton import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel import com.vitorpamplona.amethyst.ui.stringRes +import com.vitorpamplona.amethyst.ui.theme.AmethystSwitch import com.vitorpamplona.amethyst.ui.theme.ThemeComparisonRow import com.vitorpamplona.amethyst.ui.theme.contentColorOnAccent import com.vitorpamplona.amethyst.ui.theme.isLight @@ -246,7 +246,7 @@ private fun BooleanSwitchTile( description = stringRes(description), onClick = { toggle(!checked) }, ) { - Switch(checked = checked, onCheckedChange = toggle) + AmethystSwitch(checked = checked, onCheckedChange = toggle) } }