[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: toggle-light-dark-mode
From: |
Stefan Monnier |
Subject: |
Re: toggle-light-dark-mode |
Date: |
Wed, 16 Sep 2020 16:59:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> I wonder why other themes don't support both modes? For example, why there
>> is separate light tango-theme and tango-dark-theme, but not one tango-theme
>> supporting dark and light modes? And why separate light modus-operandi-theme
>> and dark modus-vivendi-theme, but not one modus-theme with both modes?
> Indeed, defface already provides the means to account for different
> display specs.
[...]
> Going forward, it may be preferable to follow your suggestion.
Yes and no: I'm not sure the end users will really care for a two-step
choice of theme where they first need to choose a theme and then
figure out how on earth to switch from the dark version to the light or
vice-versa.
The background-mode feature of face-specs is very useful for the default
face settings to work well regardless of the choice of
foreground/background for the `default` face and that's important when
that face's default is inherited from external settings (like Gtk or
Xresources).
But in the case of modus-themes, the default face's color is chosen by
the theme, so it doesn't make much sense to say "if the default face
looks like this, do one thing otherwise do another" since we already
know what the default face looks like.
Stefan
- Re: "modern" colors Re: Changes for emacs 28, (continued)
- Re: "modern" colors Re: Changes for emacs 28, Ergus, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Alfred M. Szmidt, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Caio Henrique, 2020/09/12
- toggle-light-dark-mode (was: Re: "modern" colors Re: Changes for emacs 28), Alfred M. Szmidt, 2020/09/15
- Re: toggle-light-dark-mode, Caio Henrique, 2020/09/15
- Re: toggle-light-dark-mode, Juri Linkov, 2020/09/15
- Re: toggle-light-dark-mode, Caio Henrique, 2020/09/15
- Re: toggle-light-dark-mode, Juri Linkov, 2020/09/16
- Re: toggle-light-dark-mode, Protesilaos Stavrou, 2020/09/16
- Re: toggle-light-dark-mode, Juri Linkov, 2020/09/16
- Re: toggle-light-dark-mode,
Stefan Monnier <=
- Re: toggle-light-dark-mode, Arthur Miller, 2020/09/17
- RE: "modern" colors Re: Changes for emacs 28, Drew Adams, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Ricardo Wurmus, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Ergus, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Caio Henrique, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Ergus, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Göktuğ Kayaalp, 2020/09/13
- Re: "modern" colors Re: Changes for emacs 28, Ricardo Wurmus, 2020/09/12
- Re: "modern" colors Re: Changes for emacs 28, Eli Zaretskii, 2020/09/13
- Re: "modern" colors Re: Changes for emacs 28, Ricardo Wurmus, 2020/09/13