[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: toggle-light-dark-mode
From: |
Protesilaos Stavrou |
Subject: |
Re: toggle-light-dark-mode |
Date: |
Wed, 16 Sep 2020 23:14:09 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Juri Linkov <juri@linkov.net> [2020-09-16, 22:31 +0300]:
>> Maybe this could also be an optional alternative behavior that you can
>> enable with a boolean variable? toggle-light-dark-theme-use-reverse-video
>>
>> I like your suggestions and I can see that they appeal to other users,
>> but personally I also wouldn't use reverse video (I like using
>> kaolin-galaxy as my dark theme and modus-operandi for my light theme).
>>
>> Or we could also do the inverse: use the behavior of your code by
>> default and make mine optional. :)
>
> Actually my point was that the default Emacs faces support both modes:
> dark and light, so you can use the same default theme in different modes,
> just by toggling frame-background-mode. This is implemented by using
> '(background dark)' and '(background light)' in defface definitions.
>
> 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.
Concerning the Modus themes' question, I simply did not know any better
~1 year ago when I started the project. The tango themes where my point
of reference. Also, and if my memory serves me well, the command
customize-create-theme did not account for light/dark variants.
Going forward, it may be preferable to follow your suggestion.
--
Protesilaos Stavrou
protesilaos.com
- Re: "modern" colors Re: Changes for emacs 28, (continued)
- Re: "modern" colors Re: Changes for emacs 28, Stefan Kangas, 2020/09/13
- Re: "modern" colors Re: Changes for emacs 28, Colin Baxter, 2020/09/13
- 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 <=
- Re: toggle-light-dark-mode, Juri Linkov, 2020/09/16
- Re: toggle-light-dark-mode, Stefan Monnier, 2020/09/16
- 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