dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit b42a68478d0705933836365a51138bfa333d3ff5
parent 8a770191de37c62b1b264c0d99ad8ee11adee03c
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Sun, 11 Jan 2026 00:11:26 +0100

Rework "UI" faces

The current arrangement yielded some jank,

* dictionary.el buttons were unaligned,
* comint prompts kept shrinking on machines were variable-pitch is
shrunk.

Let's see if that "model" fares better.

Diffstat:
M.config/emacs/eighters-theme.el | 34+++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)

diff --git a/.config/emacs/eighters-theme.el b/.config/emacs/eighters-theme.el @@ -200,8 +200,10 @@ "Face for level 7 headings.") (defface eighters-title-8 nil "Face for level 8 headings.") -(defface eighters-ui nil - "Face for inalterable UI elements.") +(defface eighters-ui-input nil + "Face for UI elements that invite user interaction.") +(defface eighters-ui-intangible nil + "Face for UI elements that point cannot reach.") (defmacro eighters-with-palette (&rest body) `(let ,eighters-palette ,@body)) @@ -210,7 +212,7 @@ (custom-theme-set-faces 'eighters ;;; Theme faces. - `(eighters-button ((t (:background ,bg-hl-dimmer :box (:line-width (-1 . -1) :color ,bg-hl :style released-button) :inherit eighters-ui)))) + `(eighters-button ((t (:box (:line-width (-1 . -1) :style released-button) :inherit eighters-ui-input)))) `(eighters-checkbox ((t (:background ,bg-hl-dim :foreground ,fg-blue-dim)))) `(eighters-citation-1 ((t (:foreground ,fg-cyan-dim)))) `(eighters-citation-2 ((t (:foreground ,fg-green-dim)))) @@ -230,7 +232,8 @@ `(eighters-title-6 ((t (:foreground ,fg-blue-subtle :weight bold :inherit variable-pitch)))) `(eighters-title-7 ((t (:foreground ,fg-cyan-subtle :weight bold :inherit variable-pitch)))) `(eighters-title-8 ((t (:foreground ,fg-green-subtle :weight bold :inherit variable-pitch)))) - `(eighters-ui ((t (:inherit variable-pitch)))) + `(eighters-ui-input ((t (:background ,bg-blue-dim :foreground ,fg-blue-subtle)))) + `(eighters-ui-intangible ((t (:inherit variable-pitch)))) ;;; Standard faces. `(ansi-color-black ((t (:foreground ,bg :background ,bg)))) `(ansi-color-red ((t (:foreground ,fg-red :background ,bg-red-dim)))) @@ -253,6 +256,7 @@ `(change-log-date ((t (:inherit eighters-date)))) `(change-log-email ((t (:inherit (eighters-identity fixed-pitch-serif))))) `(change-log-name ((t (:inherit eighters-identity)))) + `(comint-highlight-prompt ((t (:weight bold :inherit eighters-ui-input)))) `(compilation-column-number ((t (:inherit eighters-metadata)))) `(compilation-line-number ((t (:inherit eighters-metadata)))) `(compilation-mode-line-exit ((t (:inherit compilation-info)))) @@ -340,7 +344,7 @@ `(gnus-header ((t ()))) `(gnus-header-content ((t (:foreground ,fg-dim :inherit gnus-header)))) `(gnus-header-from ((t (:inherit (eighters-identity gnus-header))))) - `(gnus-header-name ((t (:background ,bg-blue-dim :foreground ,fg-blue-subtle :inherit (eighters-ui gnus-header))))) + `(gnus-header-name ((t (:inherit (eighters-ui-intangible eighters-ui-input gnus-header))))) `(gnus-header-newsgroups ((t (:inherit (warning gnus-header))))) `(gnus-header-subject ((t (:inherit (eighters-title-1 gnus-header))))) `(gnus-server-closed ((t (:inherit shadow)))) @@ -355,7 +359,7 @@ `(gnus-summary-normal-read ((t (:foreground ,fg-dim :slant italic)))) `(gnus-summary-normal-ticked ((t (:foreground ,fg-yellow-dim)))) `(gnus-summary-selected ((t (:inherit highlight)))) - `(header-line ((t (:background ,bg-hl :inherit eighters-ui)))) + `(header-line ((t (:background ,bg-hl :inherit eighters-ui-intangible)))) `(help-key-binding ((t (:background ,bg-hl-dimmer :foreground ,fg-magenta :inherit fixed-pitch-serif)))) `(highlight ((t (:background ,bg-hl-dim)))) `(icomplete-selected-match ((t (:inherit completions-highlight)))) @@ -381,20 +385,20 @@ `(message-cited-text-4 ((t (:inherit eighters-citation-4)))) `(message-header-cc ((t (:inherit eighters-identity)))) `(message-header-from ((t (:inherit eighters-identity)))) - `(message-header-name ((t (:background ,bg-blue-dim :foreground ,fg-blue-subtle :inherit eighters-ui)))) + `(message-header-name ((t (:inherit (eighters-ui-intangible eighters-ui-input))))) `(message-header-newsgroups ((t (:inherit warning)))) `(message-header-subject ((t (:inherit eighters-title-1)))) `(message-header-other ((t (:foreground ,fg-dim)))) `(message-header-to ((t (:weight bold :inherit eighters-identity)))) `(message-header-xheader ((t (:inherit font-lock-preprocessor-face)))) - `(message-mml ((t (:foreground ,fg-blue :inherit eighters-ui)))) - `(message-separator ((t (:background ,bg-hl-dim :inherit (eighters-ui shadow))))) - `(message-signature-separator ((t (:background ,bg-hl-dim :inherit (eighters-ui shadow))))) - `(minibuffer-prompt ((t (:background ,bg-blue :foreground ,fg-blue-subtle :weight bold :inherit eighters-ui)))) + `(message-mml ((t (:foreground ,fg-blue :inherit eighters-ui-input)))) + `(message-separator ((t (:background ,bg-hl-dim :inherit (eighters-ui-intangible shadow))))) + `(message-signature-separator ((t (:inherit message-separator)))) + `(minibuffer-prompt ((t (:weight bold :inherit (eighters-ui-input eighters-ui-intangible))))) `(minibuffer-nonselected ((t (:background ,bg-red :foreground ,fg-yellow)))) `(mm-uu-extract ((t (:background ,bg-hl-dimmer)))) - `(mode-line ((t (:background ,bg-hl :box (:color ,fg) :inherit eighters-ui)))) - `(mode-line-inactive ((t (:background ,bg-hl-dimmer :foreground ,fg-dimmer :box (:color ,bg-hl-dimmer) :inherit eighters-ui)))) + `(mode-line ((t (:background ,bg-hl :box (:color ,fg) :inherit eighters-ui-intangible)))) + `(mode-line-inactive ((t (:background ,bg-hl-dimmer :foreground ,fg-dimmer :box (:color ,bg-hl-dimmer) :inherit eighters-ui-intangible)))) `(nobreak-space ((t (:background ,bg-magenta-dimmer :underline t :inherit escape-glyph)))) `(outline-1 ((t (:inherit eighters-title-1)))) `(outline-2 ((t (:inherit eighters-title-2)))) @@ -452,7 +456,7 @@ `(shr-h5 ((t (:inherit eighters-title-5)))) `(shr-h6 ((t (:inherit eighters-title-6)))) `(success ((t (:foreground ,fg-blue :weight bold)))) - `(tab-bar ((t (:background ,bg-hl-dimmer :inherit eighters-ui)))) + `(tab-bar ((t (:background ,bg-hl-dimmer :inherit eighters-ui-intangible)))) `(tab-bar-tab ((t (:weight bold :box (:style released-button) :inherit tab-bar)))) `(tab-bar-tab-highlight ((t (:background ,bg-hl :inherit tab-bar-tab)))) `(tab-bar-tab-inactive ((t (:foreground ,fg-dimmer :weight normal :box (:style pressed-button) :inherit tab-bar-tab)))) @@ -557,7 +561,7 @@ `(which-key-group-description-face ((t (:foreground ,fg-green-dim)))) `(which-key-key-face ((t :weight bold :inherit help-key-binding))) ;;;; Magit. - `(magit-blame-highlight ((t (:foreground ,fg-blue-dim :background ,bg-blue-dimmer :inherit eighters-ui)))) + `(magit-blame-highlight ((t (:foreground ,fg-blue-dim :background ,bg-blue-dimmer :inherit eighters-ui-intangible)))) `(magit-branch-current ((t (:inverse-video t :inherit magit-branch-local)))) `(magit-branch-local ((t (:foreground ,fg-blue)))) `(magit-branch-remote ((t (:foreground ,fg-green-dim))))