Re: Disabling dark / light mode UI toggle

2023-08-10 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
IMO that’s not an argument for bloating the interface further. If we could go back in time perhaps we’d not make many of the same decisions. I’d say the way forwards is to write a blog post documenting this template override technique, and if there are signs that others find it useful, we could

Re: Disabling dark / light mode UI toggle

2023-08-10 Thread Niccolò Mineo
Django currently allows removing the view site link, which I'd call a niche feature. Considering also the recent theming improvements in Django, allowing to hide the color theme toggle shouldn't be more niche than said view site link removal feature. Il giorno mercoledì 9 agosto 2023 alle

Re: Disabling dark / light mode UI toggle

2023-08-09 Thread Carlton Gibson
Quite likely not, but such a niche feature isn’t worth the extra API surface area, I’d likely think. On Wednesday, 9 August 2023, Niccolò Mineo wrote: > Yes, not pretty, though, right? > > Il giorno martedì 8 agosto 2023 alle 07:33:12 UTC+2 Adam Johnson ha > scritto: > >> You should be able to

Re: Disabling dark / light mode UI toggle

2023-08-09 Thread Niccolò Mineo
Yes, not pretty, though, right? Il giorno martedì 8 agosto 2023 alle 07:33:12 UTC+2 Adam Johnson ha scritto: > You should be able to disable the button by creating an empty > admin/color_theme_toggle.html template in your project. > > On Mon, Aug 7, 2023 at 10:28 PM Niccolò Mineo wrote: > >> *

Re: Disabling dark / light mode UI toggle

2023-08-07 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
You should be able to disable the button by creating an empty admin/color_theme_toggle.html template in your project. On Mon, Aug 7, 2023 at 10:28 PM Niccolò Mineo wrote: > * I haven't found a convenient way, that is. > > Il giorno lunedì 7 agosto 2023 alle 23:26:11 UTC+2 Niccolò Mineo ha >

Re: Disabling dark / light mode UI toggle

2023-08-07 Thread Niccolò Mineo
* I haven't found a convenient way, that is. Il giorno lunedì 7 agosto 2023 alle 23:26:11 UTC+2 Niccolò Mineo ha scritto: > There is a specific situation in which I wouldn't want the user to be able > to toggle between dark and light mode for the admin theme, and that is if I > heavily

Disabling dark / light mode UI toggle

2023-08-07 Thread Niccolò Mineo
There is a specific situation in which I wouldn't want the user to be able to toggle between dark and light mode for the admin theme, and that is if I heavily customized it. I haven't found a way to disable that specific toggle, so I suggest that an *AdminSite.ui_toggle* (or the like) boolean