django-jazzmin icon indicating copy to clipboard operation
django-jazzmin copied to clipboard

Navbar still in light mode even DarkMode is applied

Open sarthak09walia opened this issue 1 year ago • 4 comments

JAZZMIN_UI_TWEAKS = { "theme": "darkly" }

Even applying dark mode to the theme the navbar/Topmenu is still in light mode

Screenshot 2023-11-04 223835

sarthak09walia avatar Nov 05 '23 05:11 sarthak09walia

@sarthak09walia hello, dark theme is actually determined by the "dark mode theme" variable on settings like this;

JAZZMIN_UI_TWEAKS = {
    ...
    "theme": "flatly",
    "dark_mode_theme": "darkly",
}

If you want to examine it in detail: https://django-jazzmin.readthedocs.io/ui_customisation/#dark-mode-enabled

AliYmn avatar Dec 19 '23 21:12 AliYmn

I'm having this same issue even when setting {"theme": "darkly, "dark_mode_theme": "darkly"} or {"theme": "slate, "dark_mode_theme": "slate"}

The inline fields are also white with white text

Chrome on OSX with dark mode set in OSX and set in Chrome It looks like the light mode theme is being used regardless of the setting and some elements aren't respecting the light theme anyways

Screenshot 2024-03-19 at 1 38 34 PM

raimondi1337 avatar Mar 19 '24 17:03 raimondi1337

@raimondi1337 hello, check your "JAZZMIN_UI_TWEAKS" in settings.py some values may remain light.

AliYmn avatar Mar 21 '24 09:03 AliYmn

@raimondi1337 https://github.com/farridav/django-jazzmin/blob/master/jazzmin/settings.py#L121 change this on JAZZMIN_UI_TWEAKS

asidowner avatar May 02 '24 12:05 asidowner