Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1186,11 +1186,16 @@ class SettingsViewModel @Inject constructor(
}

/**
* Cycle the accent color through the rainbow palette.
* Order: White β†’ Red β†’ Orange β†’ Yellow β†’ Green β†’ Blue β†’ Indigo β†’ Violet β†’ White
* Cycle the accent color through the full palette (primary + secondary).
* Order: neutrals β†’ warms β†’ cools β†’ back to White
*/
fun cycleAccentColor() {
val colors = listOf("White", "Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet")
val colors = listOf(
"White", "Silver", "Slate", "Charcoal", "Cream",
"Gold", "Bronze", "Amber", "Orange", "Red", "Maroon",
"Rose Gold", "Magenta", "Lavender", "Violet", "Indigo", "Navy",
"Blue", "Cyan", "Teal", "Green", "Olive", "Yellow"
Comment on lines +1193 to +1197
)
val current = _uiState.value.accentColor
val nextIndex = (colors.indexOf(current) + 1) % colors.size
val next = colors[nextIndex]
Expand Down
20 changes: 19 additions & 1 deletion app/src/main/kotlin/com/arflix/tv/ui/skin/ArvioSkin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,32 @@ fun resolveAccentColor(fallback: Color): Color {
* Maps a user-facing colour name to its [Color] value.
* Used by the accent colour setting and the colour picker.
*/
fun accentColorFromName(name: String): Color = when (name) {
fun accentColorFromName(name: String): Color = when (name.trim()) {
"White" -> Color(0xFFFFFFFF)
// Primary palette (existing)
"Red" -> Color(0xFFFF4444)
"Orange" -> Color(0xFFFF8800)
"Yellow" -> Color(0xFFFFDD44)
"Green" -> Color(0xFF44CC44)
"Blue" -> Color(0xFF4488FF)
"Indigo" -> Color(0xFF6644CC)
"Violet" -> Color(0xFFBB44CC)
// Secondary palette (new)
"Gold" -> Color(0xFFFFD700)
"Silver" -> Color(0xFFC0C0C0)
"Rose Gold" -> Color(0xFFEAA6A0)
"Teal" -> Color(0xFF009688)
"Cyan" -> Color(0xFF00BCD4)
"Magenta" -> Color(0xFFE040FB)
"Charcoal" -> Color(0xFF5D6D7E)
"Slate" -> Color(0xFF8899AA)
"Cream" -> Color(0xFFFFFDD0)
"Olive" -> Color(0xFF8A9A5B)
"Navy" -> Color(0xFF4A6FA5)
"Amber" -> Color(0xFFFFC107)
"Maroon" -> Color(0xFFC62828)
"Lavender" -> Color(0xFFB39DDB)
"Bronze" -> Color(0xFFCD7F32)
else -> Color(0xFFFFFFFF) // White (default)
}

Expand Down