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 add a docs note.

On Thu, 10 Aug 2023 at 10:53, Niccolò Mineo  wrote:

> 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 19:03:25 UTC+2 Carlton Gibson ha
> scritto:
>
>> 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 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
> 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
> 
> .
>
 --
>>> 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
>>> 
>>> .
>>>
>> --
> 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/7b0ae2a9-c99d-4a0e-b3cf-404b4aa7d02dn%40googlegroups.com
> 
> .
>

-- 
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/CAMyDDM2DuVzQcyT7n6ckCWyMHUsw1USgM_9_5t8%3DfP7ecZ0DvQ%40mail.gmail.com.


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 19:03:25 UTC+2 Carlton Gibson ha 
scritto:

> 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 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 
 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
  
 
 .

>>> -- 
>> 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
>>  
>> 
>> .
>>
>

-- 
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/7b0ae2a9-c99d-4a0e-b3cf-404b4aa7d02dn%40googlegroups.com.


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 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
>>> 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
>>> 
>>> .
>>>
>> --
> 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
> 
> .
>

-- 
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/CAJwKpySuGR1vOEdSfeu2Kbu-YzKfFOfTXRBfM%3D8DjMWJvnojYg%40mail.gmail.com.


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:
>
>> * 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
>>  
>> 
>> .
>>
>

-- 
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.


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
> 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-developers+unsubscr...@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
> 
> .
>

-- 
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/CAMyDDM3wTanYZoO-3Rhyb8BbkCf1jo0G3Tp982kVEW0K%2BN2EzQ%40mail.gmail.com.


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 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-developers+unsubscr...@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.