branch: externals/standard-themes
commit a27d434158e29bc015176641298bc5420b36ab69
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Revise display-line-numbers-mode faces; add semantic palette mappings
---
standard-dark-theme.el | 7 +++++++
standard-light-theme.el | 7 +++++++
standard-themes.el | 13 +++++++------
3 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/standard-dark-theme.el b/standard-dark-theme.el
index 01e0feb395..84103b478f 100644
--- a/standard-dark-theme.el
+++ b/standard-dark-theme.el
@@ -239,6 +239,13 @@
(accent-2 green)
(accent-3 magenta-cooler)
+;;;; Line number mappings
+
+ (fg-line-number-inactive fg-dim)
+ (fg-line-number-active fg-main)
+ (bg-line-number-inactive unspecified)
+ (bg-line-number-active unspecified)
+
;;;; Link mappings
(fg-link cyan)
diff --git a/standard-light-theme.el b/standard-light-theme.el
index 1319ac3f9e..43a5bab49f 100644
--- a/standard-light-theme.el
+++ b/standard-light-theme.el
@@ -239,6 +239,13 @@
(accent-2 green)
(accent-3 magenta-cooler)
+;;;; Line number mappings
+
+ (fg-line-number-inactive fg-dim)
+ (fg-line-number-active fg-main)
+ (bg-line-number-inactive unspecified)
+ (bg-line-number-active unspecified)
+
;;;; Link mappings
(fg-link blue-warmer)
diff --git a/standard-themes.el b/standard-themes.el
index d096c24df7..c819baffe1 100644
--- a/standard-themes.el
+++ b/standard-themes.el
@@ -1402,12 +1402,13 @@ Optional prefix argument MAPPINGS has the same meaning
as for
`(keycast-command ((,c :inherit bold :foreground ,bg-accent)))
`(keycast-key ((,c :background ,bg-accent :foreground ,bg-main)))
;;;; line numbers (display-line-numbers-mode and global variant)
- ;; We need to fall back to `default' otherwise line numbers do not
- ;; scale when using `text-scale-adjust'.
- `(line-number ((,c :inherit (standard-themes-fixed-pitch shadow default))))
- `(line-number-current-line ((,c :inherit (bold line-number) :foreground
,fg-main)))
- `(line-number-major-tick ((,c :inherit (bold line-number) :foreground
,rainbow-0)))
- `(line-number-minor-tick ((,c :inherit (bold line-number))))
+ ;; Here we cannot inherit `standard-themes-fixed-pitch'. We need to
+ ;; fall back to `default' otherwise line numbers do not scale when
+ ;; using `text-scale-adjust'.
+ `(line-number ((,c :inherit ,(if standard-themes-mixed-fonts '(fixed-pitch
default) 'default) :background ,bg-line-number-inactive :foreground
,fg-line-number-inactive)))
+ `(line-number-current-line ((,c :inherit (bold line-number) :background
,bg-line-number-active :foreground ,fg-line-number-active)))
+ `(line-number-major-tick ((,c :inherit line-number :foreground ,err)))
+ `(line-number-minor-tick ((,c :inherit line-number :foreground ,fg-alt)))
;;;; magit
`(magit-bisect-bad ((,c :inherit error)))
`(magit-bisect-good ((,c :inherit success)))