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 <niccol...@gmail.com> 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 
>> 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 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 be added. What do you think?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-develop...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/7f09013b-02db-40bf-928f-83a737dec069n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-developers/7f09013b-02db-40bf-928f-83a737dec069n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/47774b6a-a783-47cf-8229-299f891c1b32n%40googlegroups.com.
  • Dis... Niccolò Mineo
    • ... Niccolò Mineo
      • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
        • ... Niccolò Mineo
          • ... Carlton Gibson
            • ... Niccolò Mineo
              • ... 'Adam Johnson' via Django developers (Contributions to Django itself)

Reply via email to