mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 01:07:46 +00:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EVwY2Qzth2EREWg8qLhyzF
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user