[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-vivendi-theme a0e9380 055/110: Add tentative supp
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-vivendi-theme a0e9380 055/110: Add tentative support for Emacs27 TAB-{BAR, LINE} |
Date: |
Wed, 29 Apr 2020 21:40:06 -0400 (EDT) |
branch: externals/modus-vivendi-theme
commit a0e9380d5536ccb8418ad86c2d942c9b2c2f3c90
Author: Protesilaos Stavrou <address@hidden>
Commit: Protesilaos Stavrou <address@hidden>
Add tentative support for Emacs27 TAB-{BAR,LINE}
The reason this is considered "tentative" is that I am using an uncommon
way to declare those faces: rather than add them to the list, I wrap
them in a new `custom-theme-set-faces' that evaluates for Emacs 27+.
Such a workaround is necessary to avoid errors with the linter. It
throws an error every time a built-in package is introduced in a version
of Emacs that is higher than the minimum requirement specified in the
theme's header.
---
modus-operandi-theme.el | 21 +++++++++++++++++++++
modus-vivendi-theme.el | 21 +++++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index d3ac94b..f6cc28b 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -255,6 +255,8 @@
;; swoop
;; sx
;; symbol-overlay
+;; tab-bar-mode
+;; tab-line-mode
;; syslog-mode
;; trashed
;; telephone-line
@@ -2996,6 +2998,25 @@ AMOUNT is a customisation option."
`(ztreep-leaf-face ((,class (:foreground ,cyan))))
`(ztreep-node-count-children-face ((,class (:foreground ,fg-special-warm))))
`(ztreep-node-face ((,class (:foreground ,fg-main))))
+ (when (>= emacs-major-version 27) ; EXPERIMENTAL this form is subject to
review
+ (custom-theme-set-faces
+ 'modus-operandi
+ ;;;; tab-bar-mode
+ `(tab-bar ((,class (:background ,bg-alt :foreground ,fg-alt))))
+ `(tab-bar-tab ((,class (:box (:line-width 1 :color ,fg-alt)
+ :background ,bg-tab-active :foreground
,fg-main))))
+ `(tab-bar-tab-inactive ((,class (:box (:line-width 1 :color
,bg-tab-active)
+ :background ,bg-tab-inactive
:foreground ,fg-dim))))
+ ;;;; tab-line-mode
+ `(tab-line ((,class (:height 0.95 :background ,bg-active :foreground
,fg-active))))
+ `(tab-line-close-highlight ((,class (:foreground ,red-active))))
+ `(tab-line-highlight ((,class (:background ,bg-tab-active :foreground
,fg-main))))
+ `(tab-line-tab ((,class (:box (:line-width 1 :color ,fg-alt)
+ :background ,bg-tab-active :foreground
,fg-main))))
+ `(tab-line-tab-current ((,class (:box (:line-width 1 :color ,fg-alt)
+ :background ,bg-tab-active
:foreground ,fg-main))))
+ `(tab-line-tab-inactive ((,class (:box (:line-width 1 :color
,bg-tab-active)
+ :background ,bg-tab-inactive
:foreground ,fg-dim))))))
;;; Theme Variables
(custom-theme-set-variables
'modus-operandi
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index aa21b58..909d107 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -255,6 +255,8 @@
;; swoop
;; sx
;; symbol-overlay
+;; tab-bar-mode
+;; tab-line-mode
;; syslog-mode
;; trashed
;; telephone-line
@@ -2996,6 +2998,25 @@ AMOUNT is a customisation option."
`(ztreep-leaf-face ((,class (:foreground ,cyan))))
`(ztreep-node-count-children-face ((,class (:foreground ,fg-special-warm))))
`(ztreep-node-face ((,class (:foreground ,fg-main))))
+ (when (>= emacs-major-version 27) ; EXPERIMENTAL this form is subject to
review
+ (custom-theme-set-faces
+ 'modus-vivendi
+ ;;;; tab-bar-mode
+ `(tab-bar ((,class (:background ,bg-alt :foreground ,fg-alt))))
+ `(tab-bar-tab ((,class (:box (:line-width 1 :color ,fg-alt)
+ :background ,bg-tab-active :foreground
,fg-main))))
+ `(tab-bar-tab-inactive ((,class (:box (:line-width 1 :color
,bg-tab-active)
+ :background ,bg-tab-inactive
:foreground ,fg-dim))))
+ ;;;; tab-line-mode
+ `(tab-line ((,class (:height 0.95 :background ,bg-active :foreground
,fg-active))))
+ `(tab-line-close-highlight ((,class (:foreground ,red-active))))
+ `(tab-line-highlight ((,class (:background ,bg-tab-active :foreground
,fg-main))))
+ `(tab-line-tab ((,class (:box (:line-width 1 :color ,fg-alt)
+ :background ,bg-tab-active :foreground
,fg-main))))
+ `(tab-line-tab-current ((,class (:box (:line-width 1 :color ,fg-alt)
+ :background ,bg-tab-active
:foreground ,fg-main))))
+ `(tab-line-tab-inactive ((,class (:box (:line-width 1 :color
,bg-tab-active)
+ :background ,bg-tab-inactive
:foreground ,fg-dim))))))
;;; Theme Variables
(custom-theme-set-variables
'modus-vivendi
- [elpa] externals/modus-vivendi-theme 6d288f9 038/110: Refine colours for C-q chars and regexp groupings, (continued)
- [elpa] externals/modus-vivendi-theme 6d288f9 038/110: Refine colours for C-q chars and regexp groupings, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme c419e9b 034/110: Add support for new ICOMPLETE-VERTICAL package, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme e6c7b7f 033/110: Document already-supported ICOMPLETE and FLX, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme d8d266d 043/110: Add missing newline char in end of file, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 72de79b 044/110: Use bold weight conditionally in more indicators, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme ded2d1f 035/110: Provide concise docs of customisation options, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme ca9a69d 040/110: Add support for AG, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 530787e 048/110: Refine FLYSPELL: use new dedicated lang colours, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 409648d 049/110: Refine FLYMAKE: new linter colours, better fringes, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme f635f9b 050/110: Refine ARTBOLLOCKS-MODE: use new lang colours, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme a0e9380 055/110: Add tentative support for Emacs27 TAB-{BAR, LINE},
Stefan Monnier <=
- [elpa] externals/modus-vivendi-theme b298d30 067/110: Add note on package list refresh in the README, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 1cb0353 068/110: Simplify `outline-minor-faces', Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme f744335 069/110: Add support for ORDERLESS, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 75199a6 071/110: Minor formatting change in README, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme d3958bb 074/110: NEW CUSTOMISATION OPTION for "rainbow headings", Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme e7a5f9a 077/110: NEW CUSTOMISATION OPTION for "section headings", Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 4d7d769 020/110: Fix MAGIT regression on colours of unfocused diffs, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme d931e3c 022/110: Add docs on ORG colour-coded source blocks, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 7fabd85 042/110: Add support for VIMISH-FOLD, Stefan Monnier, 2020/04/29
- [elpa] externals/modus-vivendi-theme 2c42b61 041/110: Add support for COLOR-RG, Stefan Monnier, 2020/04/29