Skip to content

Commit 7d76af6

Browse files
committed
Refs #2096: The theme selector now controls all colors
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 11e28f7 commit 7d76af6

File tree

7 files changed

+352
-627
lines changed

7 files changed

+352
-627
lines changed

debug_toolbar/settings.py

Lines changed: 0 additions & 1 deletion
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)