~protesilaos/modus-themes

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH] Fix mode-line face inheritance

Steven Allen <steven@stebalien.com>
Details
Message ID
<20231121184745.37546-1-steven@stebalien.com>
DKIM signature
missing
Download raw message
Patch: +6 -6
Make `mode-line-active` and `mode-line-inactive` inherit `mode-line`,
moving the "active" color specification to `mode-line-active`. This
mirrors the face-hierarchy in upstream Emacs and makes it possible to,
e.g., scale the font of all mode-line faces by altering the base
`mode-line` face.
---
 modus-themes.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/modus-themes.el b/modus-themes.el
index e90409e..bc840c2 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -3095,15 +3095,15 @@ defconst modus-themes-faces
    `(minimap-active-region-background ((,c :background ,bg-active)))
    `(minimap-current-line-face ((,c :background ,bg-cyan-intense :foreground ,fg-main)))
;;;;; mode-line
    `(mode-line ((,c :inherit modus-themes-ui-variable-pitch
                     :box ,border-mode-line-active
                     :background ,bg-mode-line-active
                     :foreground ,fg-mode-line-active)))
    `(mode-line-active ((,c :inherit mode-line)))
    `(mode-line ((,c :inherit modus-themes-ui-variable-pitch)))
    `(mode-line-active ((,c :inherit mode-line
                            :box ,border-mode-line-active
                            :background ,bg-mode-line-active
                            :foreground ,fg-mode-line-active)))
    `(mode-line-buffer-id ((,c :inherit bold)))
    `(mode-line-emphasis ((,c :inherit bold :foreground ,modeline-info)))
    `(mode-line-highlight ((,c :background ,bg-hover :foreground ,fg-main :box ,fg-main)))
    `(mode-line-inactive ((,c :inherit modus-themes-ui-variable-pitch
    `(mode-line-inactive ((,c :inherit mode-line
                              :box ,border-mode-line-inactive
                              :background ,bg-mode-line-inactive
                              :foreground ,fg-mode-line-inactive)))
-- 
2.43.0
Details
Message ID
<875y1q8fr2.fsf@protesilaos.com>
In-Reply-To
<20231121184745.37546-1-steven@stebalien.com> (view parent)
DKIM signature
missing
Download raw message
Hello Steven,

> From: Steven Allen <steven@stebalien.com>
> Date: Tue, 21 Nov 2023 10:47:45 -0800
>
> Make `mode-line-active` and `mode-line-inactive` inherit `mode-line`,
> moving the "active" color specification to `mode-line-active`. This
> mirrors the face-hierarchy in upstream Emacs and makes it possible to,
> e.g., scale the font of all mode-line faces by altering the base
> `mode-line` face.

Thank you for taking the time to do this! I think that moving the color
specification to 'mode-line-active' will not work with Emacs 28 because
there is no 'mode-line-active' there and the 'mode-line' will thus be
left empty. Or am I missing something?

Have a nice day,
Protesilaos (or simply "Prot")

-- 
Protesilaos Stavrou
https://protesilaos.com
Steven Allen <steven@stebalien.com>
Details
Message ID
<87cyvxsiss.fsf@stebalien.com>
In-Reply-To
<875y1q8fr2.fsf@protesilaos.com> (view parent)
DKIM signature
missing
Download raw message
Protesilaos Stavrou <info@protesilaos.com> writes:
> Thank you for taking the time to do this! I think that moving the color
> specification to 'mode-line-active' will not work with Emacs 28 because
> there is no 'mode-line-active' there and the 'mode-line' will thus be
> left empty. Or am I missing something?

Hm, you're right. I didn't realize this was a backwards compatibility
thing. I'll try to find a better fix.

Thanks for the quick response and taking time to review.

- Steven
Reply to thread Export thread (mbox)