Skip to content

Commit 3595341

Browse files
authored
fix incorrectly selected current theme in the theme radio (#6182)
Task/Issue URL: https://app.asana.com/1/137249556945/project/414730916066338/task/1210402384079670?focus=true ### Description Fixes the theme radio to pre-select correct theme. ### Steps to test this PR - [ ] Open Settings -> Appearance -> Theme. - [ ] Verify that your current theme is pre-selected correctly. - [ ] Change theme and try again. - [ ] Toggle on the Experimental UI Settings -> Enable Visual design updates. - [ ] Verify that your current theme (light/dark) is pre-selected correctly. Previously, it would pre-select nothing. - [ ] Change theme and try again.
1 parent c695b14 commit 3595341

File tree

1 file changed

+2
-4
lines changed
  • common/common-ui/src/main/java/com/duckduckgo/common/ui

1 file changed

+2
-4
lines changed

common/common-ui/src/main/java/com/duckduckgo/common/ui/Theming.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ enum class DuckDuckGoTheme {
4242
fun getOptionIndex(): Int {
4343
return when (this) {
4444
SYSTEM_DEFAULT -> 1
45-
DARK -> 2
46-
LIGHT -> 3
47-
EXPERIMENT_DARK -> 4
48-
EXPERIMENT_LIGHT -> 5
45+
LIGHT, EXPERIMENT_LIGHT -> 2
46+
DARK, EXPERIMENT_DARK -> 3
4947
}
5048
}
5149
}

0 commit comments

Comments
 (0)