Skip to content

Commit 66361c5

Browse files
authored
Refs #2096: The theme selector now controls all colors (#2116)
Previously, if the system preference was dark mode and the user explicitly selected the light theme, the @media block still interferred with the styling. This is fixed by only evaluating the color scheme preference when initializing the toolbar and later only looking at our own selected theme. Also, removed the DEFAULT_THEME setting; falling back to system defaults seems much better to me.
1 parent 1ea7c95 commit 66361c5

File tree

7 files changed

+366
-632
lines changed

7 files changed

+366
-632
lines changed

debug_toolbar/settings.py

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"TOOLBAR_LANGUAGE": None,
4646
"IS_RUNNING_TESTS": "test" in sys.argv,
4747
"UPDATE_ON_FETCH": False,
48-
"DEFAULT_THEME": "auto",
4948
}
5049

5150

0 commit comments

Comments
 (0)