Make mode-line-highlight always have a border

This is because the background colour it is using now may not be
discernible against an accented mode line.

The use of ':box' ensures that the padding of the highlight is always
the same as that of the mode line, whereas before we had nested
padding values (a padded box inside a padded box).
This commit is contained in:
Protesilaos Stavrou 2022-12-02 10:38:52 +02:00
parent 887069ccd3
commit 26c79c1138
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -2953,7 +2953,7 @@ C1 and C2 are color values written in hexadecimal RGB."
`(mode-line-active ((,c :inherit mode-line)))
`(mode-line-buffer-id ((,c :inherit bold)))
`(mode-line-emphasis ((,c :inherit bold :foreground ,note)))
`(mode-line-highlight ((,c :inherit highlight)))
`(mode-line-highlight ((,c :background ,bg-hover :foreground ,fg-main :box ,fg-main)))
`(mode-line-inactive ((,c :inherit modus-themes-ui-variable-pitch
,@(modus-themes--mode-line-attrs
fg-dim bg-inactive