mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-18 07:51:46 +00:00
Fix Switch toggle colors to use teal accent
- Update TmdbSettingsScreen Switch to use teal for checked state - Update PluginScreen global enable Switch to use teal - Update PluginScreen scraper toggle Switch to use teal - Add checkedTrackColor to TmdbSettingsScreen for consistency - Update "Enabled" text color to match teal theme Now all toggle switches show visible teal color when ON, matching the FilterChip and overall teal accent theme.
This commit is contained in:
parent
74989b3de3
commit
30cf0b20b9
2 changed files with 7 additions and 6 deletions
|
|
@ -249,14 +249,14 @@ private fun PluginHeader(
|
|||
Text(
|
||||
text = if (pluginsEnabled) "Enabled" else "Disabled",
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
color = if (pluginsEnabled) NuvioColors.Primary else NuvioColors.TextSecondary
|
||||
color = if (pluginsEnabled) NuvioColors.Secondary else NuvioColors.TextSecondary
|
||||
)
|
||||
Switch(
|
||||
checked = pluginsEnabled,
|
||||
onCheckedChange = onPluginsEnabledChange,
|
||||
colors = SwitchDefaults.colors(
|
||||
checkedThumbColor = NuvioColors.Primary,
|
||||
checkedTrackColor = NuvioColors.Primary.copy(alpha = 0.3f)
|
||||
checkedThumbColor = NuvioColors.Secondary,
|
||||
checkedTrackColor = NuvioColors.Secondary.copy(alpha = 0.3f)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
@ -450,8 +450,8 @@ private fun ScraperCard(
|
|||
checked = scraper.enabled,
|
||||
onCheckedChange = onToggle,
|
||||
colors = SwitchDefaults.colors(
|
||||
checkedThumbColor = NuvioColors.Primary,
|
||||
checkedTrackColor = NuvioColors.Primary.copy(alpha = 0.3f)
|
||||
checkedThumbColor = NuvioColors.Secondary,
|
||||
checkedTrackColor = NuvioColors.Secondary.copy(alpha = 0.3f)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -205,7 +205,8 @@ private fun ToggleCard(
|
|||
enabled = enabled,
|
||||
onCheckedChange = { onToggle(it) },
|
||||
colors = SwitchDefaults.colors(
|
||||
checkedThumbColor = NuvioColors.Primary,
|
||||
checkedThumbColor = NuvioColors.Secondary,
|
||||
checkedTrackColor = NuvioColors.Secondary.copy(alpha = 0.3f),
|
||||
uncheckedThumbColor = Color.Gray
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue