emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/modus-operandi-theme 8aac934 056/112: Add support for C


From: Stefan Monnier
Subject: [elpa] externals/modus-operandi-theme 8aac934 056/112: Add support for CENTAUR-TABS
Date: Mon, 30 Mar 2020 15:59:37 -0400 (EDT)

branch: externals/modus-operandi-theme
commit 8aac9345a8ce846471e4a77ada2b221da41432f6
Author: Protesilaos Stavrou <address@hidden>
Commit: Protesilaos Stavrou <address@hidden>

    Add support for CENTAUR-TABS
    
    This addresses issue 25:
    https://gitlab.com/protesilaos/modus-themes/-/issues/25
    
    Note that I have experienced an issue with the colour of the bar that is
    drawn on the current tab when setting `centaur-tabs-set-bar'.  The
    colour does not change when switching from one theme to another (Modus
    Operandi => Modus Vivendi, and vice-versa).  Whereas all other faces
    adapt as expected.
    
    My understanding is that the bar's colour is hard-coded, probably
    inheriting from the active theme at the time the aforementioned variable
    is first set.
    
    I researched other themes that are linked for this package's README, to
    see whether they provide a solution to this issue.  None of them seems
    to have anything on the matter.  I thus assume there is some bug with
    Centaur Tabs that I cannot troubleshoot as I am not a regular user.
    Please check and report it accordingly.
---
 README.org              |  1 +
 modus-operandi-theme.el | 13 +++++++++++++
 modus-vivendi-theme.el  | 13 +++++++++++++
 3 files changed, 27 insertions(+)

diff --git a/README.org b/README.org
index c302e83..a516459 100644
--- a/README.org
+++ b/README.org
@@ -181,6 +181,7 @@ the "full support" may not be 100% true…
 + buffer-expose
 + calendar and diary
 + calfw
++ centaur-tabs
 + change-log and log-view (=vc-print-log= and =vc-print-root-log=)
 + cider
 + column-enforce-mode
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index b41a189..0aa8eac 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -71,6 +71,7 @@
 ;;     buffer-expose
 ;;     calendar and diary
 ;;     calfw
+;;     centaur-tabs
 ;;     change-log and log-view (`vc-print-log' and `vc-print-root-log')
 ;;     cider
 ;;     column-enforce-mode
@@ -691,6 +692,18 @@ between foreground and background is >= 7:1)."
    `(cfw:face-toolbar ((,class (:background ,bg-active :foreground 
,bg-active))))
    `(cfw:face-toolbar-button-off ((,class (:background ,bg-alt :foreground 
,cyan))))
    `(cfw:face-toolbar-button-on ((,class (:background ,bg-main :foreground 
,blue-intense :weight bold))))
+   ;;;; centaur-tabs
+   `(centaur-tabs-active-bar-face ((,class (:background ,fg-tab-active))))
+   `(centaur-tabs-close-mouse-face ((,class (:underline t))))
+   `(centaur-tabs-close-selected ((,class (:inherit centaur-tabs-selected))))
+   `(centaur-tabs-close-unselected ((,class (:inherit 
centaur-tabs-unselected))))
+   `(centaur-tabs-modified-marker-selected ((,class (:inherit 
centaur-tabs-selected))))
+   `(centaur-tabs-modified-marker-unselected ((,class (:inherit 
centaur-tabs-unselected))))
+   `(centaur-tabs-default ((,class (:background ,bg-main :foreground 
,bg-main))))
+   `(centaur-tabs-selected ((,class (:background ,bg-tab-active :foreground 
,fg-main))))
+   `(centaur-tabs-selected-modified ((,class (:background ,bg-tab-active 
:foreground ,fg-main :slant italic))))
+   `(centaur-tabs-unselected ((,class (:background ,bg-tab-inactive 
:foreground ,fg-dim))))
+   `(centaur-tabs-unselected-modified ((,class (:background ,bg-tab-inactive 
:foreground ,fg-dim :slant italic))))
    ;;;; change-log and log-view (`vc-print-log' and `vc-print-root-log')
    `(change-log-acknowledgment ((,class (:foreground ,yellow-nuanced))))
    `(change-log-conditionals ((,class (:foreground ,magenta-alt))))
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index cd22696..aa14f2e 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -71,6 +71,7 @@
 ;;     buffer-expose
 ;;     calendar and diary
 ;;     calfw
+;;     centaur-tabs
 ;;     change-log and log-view (`vc-print-log' and `vc-print-root-log')
 ;;     cider
 ;;     column-enforce-mode
@@ -691,6 +692,18 @@ between foreground and background is >= 7:1)."
    `(cfw:face-toolbar ((,class (:background ,bg-active :foreground 
,bg-active))))
    `(cfw:face-toolbar-button-off ((,class (:background ,bg-alt :foreground 
,cyan))))
    `(cfw:face-toolbar-button-on ((,class (:background ,bg-main :foreground 
,blue-intense :weight bold))))
+   ;;;; centaur-tabs
+   `(centaur-tabs-active-bar-face ((,class (:background ,fg-tab-active))))
+   `(centaur-tabs-close-mouse-face ((,class (:underline t))))
+   `(centaur-tabs-close-selected ((,class (:inherit centaur-tabs-selected))))
+   `(centaur-tabs-close-unselected ((,class (:inherit 
centaur-tabs-unselected))))
+   `(centaur-tabs-modified-marker-selected ((,class (:inherit 
centaur-tabs-selected))))
+   `(centaur-tabs-modified-marker-unselected ((,class (:inherit 
centaur-tabs-unselected))))
+   `(centaur-tabs-default ((,class (:background ,bg-main :foreground 
,bg-main))))
+   `(centaur-tabs-selected ((,class (:background ,bg-tab-active :foreground 
,fg-main))))
+   `(centaur-tabs-selected-modified ((,class (:background ,bg-tab-active 
:foreground ,fg-main :slant italic))))
+   `(centaur-tabs-unselected ((,class (:background ,bg-tab-inactive 
:foreground ,fg-dim))))
+   `(centaur-tabs-unselected-modified ((,class (:background ,bg-tab-inactive 
:foreground ,fg-dim :slant italic))))
    ;;;; change-log and log-view (`vc-print-log' and `vc-print-root-log')
    `(change-log-acknowledgment ((,class (:foreground ,yellow-nuanced))))
    `(change-log-conditionals ((,class (:foreground ,magenta-alt))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]