Add borderless+accented mode line variants

I thought I had already applied this patch last week, but I had left it
in the git stash instead...

Thanks to John Haman for reporting this in issue 199:
<https://gitlab.com/protesilaos/modus-themes/-/issues/199>.
This commit is contained in:
Protesilaos Stavrou 2021-05-23 23:16:56 +03:00
parent 11006063c2
commit ab31d5ba4b
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
3 changed files with 110 additions and 74 deletions

View file

@ -48,7 +48,7 @@ does not yet form part of the latest tagged commit, is explicitly marked
as such.
Current development target is 1.4.0-dev. This manual was built on
2021-05-21 11:18 +0300.
2021-05-23 23:14 +0300.
* Menu:
@ -846,6 +846,9 @@ Symbol: modus-themes-mode-line
7. accented
8. accented-3d
9. accented-moody
10. borderless-accented [ part of 1.4.0-dev ]
11. borderless-accented-3d [ part of 1.4.0-dev ]
12. borderless-accented-moody [ part of 1.4.0-dev ]
The default produces a two-dimensional effect both for the active and
inactive mode lines. The differences between the two are limited to
@ -880,6 +883,11 @@ to the default (nil), 3d, and moody styles respectively, excep
that the active mode line uses a colored background instead of the
standard shade of gray.
Same principle for borderless-accented, borderless-accented-3d,
and borderless-accented-moody which use a colored background for the
active mode line and have no discernible borders around both the active
and inactive the mode lines.
Note that Moody does not expose any faces that the themes could style
directly. Instead it re-purposes existing ones to render its tabs and
ribbons. As such, there may be cases where the contrast ratio falls
@ -4562,75 +4570,75 @@ Node: No mixed fonts27513
Node: Link styles28608
Node: Command prompts30182
Node: Mode line31381
Node: Completion UIs34994
Node: Mail citations36863
Node: Fringes37742
Node: Language checkers38404
Node: Line highlighting40353
Node: Line numbers41902
Node: Matching parentheses42980
Node: Active region43870
Node: Diffs45088
Node: Org mode blocks47139
Node: Org agenda habits49064
Node: Heading styles50899
Node: Scaled headings55001
Node: Scaled heading sizes55604
Node: UI typeface58738
Node: Headings' typeface59584
Node: Advanced customization (do-it-yourself)60208
Node: Per-theme customization settings (DIY)61571
Node: Case-by-case face specs using the themes' palette (DIY)62917
Node: Face specs at scale using the themes' palette (DIY)67381
Node: Remap face with local value (DIY)72198
Node: Cycle through arbitrary colors (DIY)74676
Node: Override colors (DIY)81242
Node: Override color saturation (DIY)86135
Node: Font configurations for Org and others (DIY)91888
Ref: Font configurations for Org and others (DIY)-Footnote-194316
Node: Custom Org user faces (DIY)94503
Node: Update Org block delimiter fontification (DIY)97875
Node: Measure color contrast (DIY)99835
Node: Load theme depending on time of day (DIY)102629
Node: Backdrop for pdf-tools (DIY)103669
Node: A theme-agnostic hook for theme loading (DIY)106431
Node: Face coverage108821
Node: Supported packages109290
Node: Indirectly covered packages116064
Node: Notes on individual packages116618
Node: Note on inline Latex in Org buffers117436
Node: Note on dimmerel117996
Node: Note on display-fill-column-indicator-mode119481
Node: Note on mmm-modeel background colors121102
Node: Note for prism123481
Node: Note for god-mode126707
Node: Note on company-mode overlay pop-up128379
Ref: Note on company-mode overlay pop-up-Footnote-1129067
Ref: Note on company-mode overlay pop-up-Footnote-2129134
Node: Note on ERC escaped color sequences129189
Ref: Note on ERC escaped color sequences-Footnote-1130615
Node: Note on powerline or spaceline130725
Node: Note on SHR colors131137
Node: Note on EWW and Elfeed fonts (SHR fonts)131572
Node: Note on Helm grep132317
Node: Note on vc-annotate-background-mode133804
Node: Note on pdf-tools link hints134689
Node: Frequently Asked Questions137121
Node: Is the contrast ratio about adjacent colors?137677
Node: What does it mean to avoid exaggerations?139184
Node: Why are colors mostly variants of blue magenta cyan?141013
Node: What is the best setup for legibility?145354
Node: Contributing147934
Node: Sources of the themes148331
Node: Issues you can help with149069
Node: Patches require copyright assignment to the FSF150269
Node: Acknowledgements152564
Node: Meta154994
Node: GNU Free Documentation License156991
Node: Indices182343
Node: Function index182522
Node: Variable index183759
Node: Concept index185827
Node: Completion UIs35421
Node: Mail citations37290
Node: Fringes38169
Node: Language checkers38831
Node: Line highlighting40780
Node: Line numbers42329
Node: Matching parentheses43407
Node: Active region44297
Node: Diffs45515
Node: Org mode blocks47566
Node: Org agenda habits49491
Node: Heading styles51326
Node: Scaled headings55428
Node: Scaled heading sizes56031
Node: UI typeface59165
Node: Headings' typeface60011
Node: Advanced customization (do-it-yourself)60635
Node: Per-theme customization settings (DIY)61998
Node: Case-by-case face specs using the themes' palette (DIY)63344
Node: Face specs at scale using the themes' palette (DIY)67808
Node: Remap face with local value (DIY)72625
Node: Cycle through arbitrary colors (DIY)75103
Node: Override colors (DIY)81669
Node: Override color saturation (DIY)86562
Node: Font configurations for Org and others (DIY)92315
Ref: Font configurations for Org and others (DIY)-Footnote-194743
Node: Custom Org user faces (DIY)94930
Node: Update Org block delimiter fontification (DIY)98302
Node: Measure color contrast (DIY)100262
Node: Load theme depending on time of day (DIY)103056
Node: Backdrop for pdf-tools (DIY)104096
Node: A theme-agnostic hook for theme loading (DIY)106858
Node: Face coverage109248
Node: Supported packages109717
Node: Indirectly covered packages116491
Node: Notes on individual packages117045
Node: Note on inline Latex in Org buffers117863
Node: Note on dimmerel118423
Node: Note on display-fill-column-indicator-mode119908
Node: Note on mmm-modeel background colors121529
Node: Note for prism123908
Node: Note for god-mode127134
Node: Note on company-mode overlay pop-up128806
Ref: Note on company-mode overlay pop-up-Footnote-1129494
Ref: Note on company-mode overlay pop-up-Footnote-2129561
Node: Note on ERC escaped color sequences129616
Ref: Note on ERC escaped color sequences-Footnote-1131042
Node: Note on powerline or spaceline131152
Node: Note on SHR colors131564
Node: Note on EWW and Elfeed fonts (SHR fonts)131999
Node: Note on Helm grep132744
Node: Note on vc-annotate-background-mode134231
Node: Note on pdf-tools link hints135116
Node: Frequently Asked Questions137548
Node: Is the contrast ratio about adjacent colors?138104
Node: What does it mean to avoid exaggerations?139611
Node: Why are colors mostly variants of blue magenta cyan?141440
Node: What is the best setup for legibility?145781
Node: Contributing148361
Node: Sources of the themes148758
Node: Issues you can help with149496
Node: Patches require copyright assignment to the FSF150696
Node: Acknowledgements152991
Node: Meta155421
Node: GNU Free Documentation License157418
Node: Indices182770
Node: Function index182949
Node: Variable index184186
Node: Concept index186254

End Tag Table

View file

@ -703,6 +703,9 @@ Possible values:
7. ~accented~
8. ~accented-3d~
9. ~accented-moody~
10. ~borderless-accented~ [ part of {{{development-version}}} ]
11. ~borderless-accented-3d~ [ part of {{{development-version}}} ]
12. ~borderless-accented-moody~ [ part of {{{development-version}}} ]
The default produces a two-dimensional effect both for the active and
inactive mode lines. The differences between the two are limited to
@ -737,6 +740,11 @@ default (~nil~), ~3d~, and ~moody~ styles respectively, except that the active
mode line uses a colored background instead of the standard shade of
gray.
Same principle for ~borderless-accented~, ~borderless-accented-3d~, and
~borderless-accented-moody~ which use a colored background for the active
mode line and have no discernible borders around both the active and
inactive the mode lines.
Note that Moody does not expose any faces that the themes could style
directly. Instead it re-purposes existing ones to render its tabs and
ribbons. As such, there may be cases where the contrast ratio falls

View file

@ -5,7 +5,7 @@
;; Author: Protesilaos Stavrou <info@protesilaos.com>
;; URL: https://gitlab.com/protesilaos/modus-themes
;; Version: 1.3.2
;; Last-Modified: <2021-05-23 10:04:57 +0300>
;; Last-Modified: <2021-05-23 23:13:55 +0300>
;; Package-Requires: ((emacs "26.1"))
;; Keywords: faces, theme, accessibility
@ -2045,9 +2045,15 @@ default).
Similarly, `accented', `accented-3d', and `accented-moody'
correspond to the default (nil), `3d', and `moody' styles
respectively, except that the active mode line uses a colored
background instead of the standard shade of gray."
background instead of the standard shade of gray.
Same principle for styles `borderless-accented',
`borderless-accented-3d', `borderless-accented-moody', which
apply a colored background to the active mode line, while they
remove any noticeable border around both the active and inactive
the mode lines."
:group 'modus-themes
:package-version '(modus-themes . "1.3.0")
:package-version '(modus-themes . "1.4.0")
:version "28.1"
:type '(choice
(const :format "[%v] %t\n" :tag "Two-dimensional box (default)" nil)
@ -2058,7 +2064,10 @@ background instead of the standard shade of gray."
(const :format "[%v] %t\n" :tag "Like `moody', but without noticeable border" borderless-moody)
(const :format "[%v] %t\n" :tag "Two-dimensional box with a colored background" accented)
(const :format "[%v] %t\n" :tag "Like `3d', but with a colored background" accented-3d)
(const :format "[%v] %t\n" :tag "Like `moody', but with a colored background" accented-moody))
(const :format "[%v] %t\n" :tag "Like `moody', but with a colored background" accented-moody)
(const :format "[%v] %t\n" :tag "Like `accented', but without a noticeable border" borderless-accented)
(const :format "[%v] %t\n" :tag "Like `accented-3d', but with a noticeable border" borderless-accented-3d)
(const :format "[%v] %t\n" :tag "Like `accented-moody', but with a noticeable border" borderless-accented-moody))
:link '(info-link "(modus-themes) Mode line"))
(defcustom modus-themes-diffs nil
@ -2767,6 +2776,17 @@ property."
`( :background ,bg-accent :foreground ,fg-accent
:underline ,border :overline ,border
:distant-foreground ,fg-distant))
('borderless-accented
`(:background ,bg-accent :foreground ,fg-accent :box ,bg-accent))
('borderless-accented-3d
`( :background ,bg-accent :foreground ,fg-accent
:box ( :line-width ,(or border-width 1)
:color ,bg-accent
:style ,(and alt-style 'released-button))))
('borderless-accented-moody
`( :background ,bg-accent :foreground ,fg-accent
:underline ,bg-accent :overline ,bg-accent
:distant-foreground ,fg-distant))
(_
`(:background ,bg :foreground ,fg :box ,border))))