REMOVE bg-char mappings and use search faces for Avy and related

These are like search matches, anyway, plus we make the code more
simple on our end.
This commit is contained in:
Protesilaos Stavrou 2025-04-07 08:31:53 +03:00
parent 80b8de398f
commit 42e161138b
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
9 changed files with 9 additions and 41 deletions

View file

@ -172,10 +172,6 @@ standard)."
(bg-region "#bdbdbd")
(fg-region "#000000")
(bg-char-0 "#7faaff")
(bg-char-1 "#dfe000")
(bg-char-2 "#7feaff")
(bg-mode-line-active "#d0d6ff")
(fg-mode-line-active "#0f0f0f")
(border-mode-line-active "#4f4f74")

View file

@ -170,10 +170,6 @@ which corresponds to a minimum contrast in relative luminance of
(bg-region "#bdbdbd")
(fg-region "#000000")
(bg-char-0 "#7feaff")
(bg-char-1 "#ffaaff")
(bg-char-2 "#dff000")
(bg-mode-line-active "#c8c8c8")
(fg-mode-line-active "#000000")
(border-mode-line-active "#5a5a5a")

View file

@ -170,10 +170,6 @@ which corresponds to a minimum contrast in relative luminance of
(bg-region "#c2bcb5")
(fg-region "#000000")
(bg-char-0 "#7feaff")
(bg-char-1 "#ffaaff")
(bg-char-2 "#dff000")
(bg-mode-line-active "#cab9b2")
(fg-mode-line-active "#000000")
(border-mode-line-active "#545454")

View file

@ -172,10 +172,6 @@ standard)."
(bg-region "#bdbdbd")
(fg-region "#000000")
(bg-char-0 "#ff908f")
(bg-char-1 "#bfbfff")
(bg-char-2 "#5fcfdf")
(bg-mode-line-active "#afe0f2")
(fg-mode-line-active "#0f0f0f")
(border-mode-line-active "#2f4f44")

View file

@ -1875,11 +1875,11 @@ FG and BG are the main colors."
`(auto-dim-other-buffers-hide-face ((,c :foreground ,bg-inactive :background ,bg-inactive)))
;;;;; avy
`(avy-background-face ((,c :background ,bg-dim :foreground ,fg-dim :extend t)))
`(avy-goto-char-timer-face ((,c :inherit bold :background ,bg-active)))
`(avy-lead-face ((,c :inherit (bold modus-themes-reset-soft) :background ,bg-char-0)))
`(avy-lead-face-0 ((,c :inherit (bold modus-themes-reset-soft) :background ,bg-char-1)))
`(avy-lead-face-1 ((,c :inherit modus-themes-reset-soft :background ,bg-inactive)))
`(avy-lead-face-2 ((,c :inherit (bold modus-themes-reset-soft) :background ,bg-char-2)))
`(avy-goto-char-timer-face ((,c :inherit (bold modus-themes-search-lazy modus-themes-reset-soft))))
`(avy-lead-face ((,c :inherit (bold modus-themes-search-current modus-themes-reset-soft))))
`(avy-lead-face-0 ((,c :inherit (bold modus-themes-search-current modus-themes-reset-soft))))
`(avy-lead-face-1 ((,c :inherit (bold modus-themes-search-current modus-themes-reset-soft))))
`(avy-lead-face-2 ((,c :inherit (bold modus-themes-search-current modus-themes-reset-soft))))
;;;;; aw (ace-window)
`(aw-background-face ((,c :foreground "gray50")))
`(aw-key-face ((,c :inherit modus-themes-key-binding)))
@ -2052,8 +2052,8 @@ FG and BG are the main colors."
;;;;; corfu-candidate-overlay
`(corfu-candidate-overlay-face ((t :inherit shadow)))
;;;;; corfu-quick
`(corfu-quick1 ((,c :inherit bold :background ,bg-char-0)))
`(corfu-quick2 ((,c :inherit bold :background ,bg-char-1)))
`(corfu-quick1 ((,c :inherit (bold modus-themes-search-current))))
`(corfu-quick2 ((,c :inherit (bold modus-themes-search-current))))
;;;;; counsel
`(counsel-active-mode ((,c :foreground ,keyword)))
`(counsel-application-name ((,c :foreground ,name)))
@ -4025,8 +4025,8 @@ FG and BG are the main colors."
;;;;; vertico
`(vertico-current ((,c :inherit modus-themes-completion-selected)))
;;;;; vertico-quick
`(vertico-quick1 ((,c :inherit bold :background ,bg-char-0)))
`(vertico-quick2 ((,c :inherit bold :background ,bg-char-1)))
`(vertico-quick1 ((,c :inherit (bold modus-themes-search-current))))
`(vertico-quick2 ((,c :inherit (bold modus-themes-search-current))))
;;;;; vimish-fold
`(vimish-fold-fringe ((,c :foreground ,cyan)))
`(vimish-fold-mouse-face ((,c :inherit modus-themes-intense-blue)))

View file

@ -172,10 +172,6 @@ standard)."
(bg-region "#5a5a5a")
(fg-region "#ffffff")
(bg-char-0 "#0040ff")
(bg-char-1 "#625000")
(bg-char-2 "#105faf")
(bg-mode-line-active "#2a2a6a")
(fg-mode-line-active "#f0f0f0")
(border-mode-line-active "#8080a7")

View file

@ -170,10 +170,6 @@ which corresponds to a minimum contrast in relative luminance of
(bg-region "#5a5a5a")
(fg-region "#ffffff")
(bg-char-0 "#0050af")
(bg-char-1 "#7f1f7f")
(bg-char-2 "#625a00")
(bg-mode-line-active "#505050")
(fg-mode-line-active "#ffffff")
(border-mode-line-active "#959595")

View file

@ -170,10 +170,6 @@ which corresponds to a minimum contrast in relative luminance of
(bg-region "#555a66")
(fg-region "#ffffff")
(bg-char-0 "#0050af")
(bg-char-1 "#7f1f7f")
(bg-char-2 "#625a00")
(bg-mode-line-active "#484d67")
(fg-mode-line-active "#ffffff")
(border-mode-line-active "#979797")

View file

@ -172,10 +172,6 @@ standard)."
(bg-region "#5a5a5a")
(fg-region "#ffffff")
(bg-char-0 "#922a00")
(bg-char-1 "#00709f")
(bg-char-2 "#5f3faf")
(bg-mode-line-active "#003c52")
(fg-mode-line-active "#f0f0f0")
(border-mode-line-active "#5f8fb4")