branch: elpa/gruvbox-theme commit fb4bb8ef27e9304ecbcae7f0da2307d4b8d898d3 Author: Philipp Reichmuth <35058059+phr...@users.noreply.github.com> Commit: Jason Milkins <jason...@users.noreply.github.com>
Add support for auto-dim-other-buffers.el (#130) Auto-dim-other-buffers.el is a minor mode that provides a visual distinction between active and inactive buffers by modifying face attributes. The source code for auto-dim-other-buffers.el is available at https://github.com/mina86/auto-dim-other-buffers.el. In order to implement support for auto-dim-other-buffers.el in the gruvbox theme, this commit introduces, in addition to the gruvbox-bg colour that contains the background colour under the current theme, a secondary gruvbox-bg_inactive colour that is always one level softer. In this way, auto-dim-other-buffers.el with gruvbox provides a subtle indication of active and inactive buffers, where inactive buffers have minimally lower contrast. In addition, this commit harmonizes the colour definitions among the soft, hard and medium flavours so that every flavour provides the full set of dark0_hard, dark0 and dark0_soft variant colours for theming. --- README.md | 1 + gruvbox-dark-hard-theme.el | 4 +++- gruvbox-dark-medium-theme.el | 6 +++++- gruvbox-dark-soft-theme.el | 5 ++++- gruvbox-light-hard-theme.el | 4 +++- gruvbox-light-medium-theme.el | 5 ++++- gruvbox-light-soft-theme.el | 5 ++++- gruvbox-theme.el | 5 ++++- gruvbox.el | 6 +++++- 9 files changed, 33 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a26416d7cb..82a0663f58 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ This theme contains custom support for the following features and plugins: - Ace jump - Ace window - [Anzu](https://github.com/syohex/emacs-anzu#customization) +- [Auto-dim-other-buffers](https://github.com/mina86/auto-dim-other-buffers.el) - Comint (and the like) - Company - Diffs diff --git a/gruvbox-dark-hard-theme.el b/gruvbox-dark-hard-theme.el index f5719ab48e..f2641cdd87 100644 --- a/gruvbox-dark-hard-theme.el +++ b/gruvbox-dark-hard-theme.el @@ -106,7 +106,9 @@ (gruvbox-aquamarine4 "#83A598" "#87af87") (gruvbox-turquoise4 "#61ACBB" "#5fafaf") - (gruvbox-bg gruvbox-dark0_hard)) + (gruvbox-bg gruvbox-dark0_hard) + (gruvbox-bg_inactive gruvbox-dark0) + ) (custom-theme-set-variables 'gruvbox-dark-hard `(ansi-color-names-vector diff --git a/gruvbox-dark-medium-theme.el b/gruvbox-dark-medium-theme.el index 1ab6105654..948fd27df3 100644 --- a/gruvbox-dark-medium-theme.el +++ b/gruvbox-dark-medium-theme.el @@ -57,6 +57,7 @@ ((((class color) (min-colors #xFFFFFF)) ; col 1 GUI/24bit ((class color) (min-colors #xFF))) ; col 2 Xterm/256 + (gruvbox-dark0_hard "#1d2021" "#1c1c1c") (gruvbox-dark0 "#282828" "#262626") (gruvbox-dark0_soft "#32302f" "#303030") (gruvbox-dark1 "#3c3836" "#3a3a3a") @@ -105,7 +106,10 @@ (gruvbox-aquamarine4 "#83A598" "#87af87") (gruvbox-turquoise4 "#61ACBB" "#5fafaf") - (gruvbox-bg gruvbox-dark0)) + (gruvbox-bg gruvbox-dark0) + (gruvbox-bg_inactive gruvbox-dark0_soft) + ) + (custom-theme-set-variables 'gruvbox-dark-medium `(ansi-color-names-vector diff --git a/gruvbox-dark-soft-theme.el b/gruvbox-dark-soft-theme.el index e9eab63946..ceb2e012e6 100644 --- a/gruvbox-dark-soft-theme.el +++ b/gruvbox-dark-soft-theme.el @@ -57,6 +57,7 @@ ((((class color) (min-colors #xFFFFFF)) ; col 1 GUI/24bit ((class color) (min-colors #xFF))) ; col 2 Xterm/256 + (gruvbox-dark0_hard "#1d2021" "#1c1c1c") (gruvbox-dark0 "#282828" "#262626") (gruvbox-dark0_soft "#32302f" "#303030") (gruvbox-dark1 "#3c3836" "#3a3a3a") @@ -105,7 +106,9 @@ (gruvbox-aquamarine4 "#83A598" "#87af87") (gruvbox-turquoise4 "#61ACBB" "#5fafaf") - (gruvbox-bg gruvbox-dark0_soft)) + (gruvbox-bg gruvbox-dark0_soft) + (gruvbox-bg_inactive gruvbox-dark1) + ) (custom-theme-set-variables 'gruvbox-dark-soft `(ansi-color-names-vector diff --git a/gruvbox-light-hard-theme.el b/gruvbox-light-hard-theme.el index 3b2740323f..9ebd4895d3 100644 --- a/gruvbox-light-hard-theme.el +++ b/gruvbox-light-hard-theme.el @@ -106,7 +106,9 @@ (gruvbox-aquamarine4 "#83A598" "#87af87") (gruvbox-turquoise4 "#61ACBB" "#5fafaf") - (gruvbox-bg gruvbox-dark0_hard)) + (gruvbox-bg gruvbox-dark0_hard) + (gruvbox-bg_inactive gruvbox-dark0) + ) (custom-theme-set-variables 'gruvbox-light-hard `(ansi-color-names-vector diff --git a/gruvbox-light-medium-theme.el b/gruvbox-light-medium-theme.el index d90298cf1b..c103040c50 100644 --- a/gruvbox-light-medium-theme.el +++ b/gruvbox-light-medium-theme.el @@ -57,6 +57,7 @@ ((((class color) (min-colors #xFFFFFF)) ; col 1 GUI/24bit ((class color) (min-colors #xFF))) ; col 2 Xterm/256 + (gruvbox-dark0_hard "#f9f5d7" "#ffffd7") (gruvbox-dark0 "#fbf1c7" "#ffffd7") (gruvbox-dark0_soft "#f2e5bc" "#ffffd7") (gruvbox-dark1 "#ebdbb2" "#ffffaf") @@ -105,7 +106,9 @@ (gruvbox-aquamarine4 "#83A598" "#87af87") (gruvbox-turquoise4 "#61ACBB" "#5fafaf") - (gruvbox-bg gruvbox-dark0)) + (gruvbox-bg gruvbox-dark0) + (gruvbox-bg_inactive gruvbox-dark0_soft) + ) (custom-theme-set-variables 'gruvbox-light-medium `(ansi-color-names-vector diff --git a/gruvbox-light-soft-theme.el b/gruvbox-light-soft-theme.el index dda8542f5e..db66d1d516 100644 --- a/gruvbox-light-soft-theme.el +++ b/gruvbox-light-soft-theme.el @@ -58,6 +58,7 @@ ((((class color) (min-colors #xFFFFFF)) ; col 1 GUI/24bit ((class color) (min-colors #xFF))) ; col 2 Xterm/256 + (gruvbox-dark0_hard "#f9f5d7" "#ffffd7") (gruvbox-dark0 "#fbf1c7" "#ffffd7") (gruvbox-dark0_soft "#f2e5bc" "#ffffd7") (gruvbox-dark1 "#ebdbb2" "#ffffaf") @@ -106,7 +107,9 @@ (gruvbox-aquamarine4 "#83A598" "#87af87") (gruvbox-turquoise4 "#61ACBB" "#5fafaf") - (gruvbox-bg gruvbox-dark0_soft)) + (gruvbox-bg gruvbox-dark0_soft) + (gruvbox-bg_inactive gruvbox-dark1) + ) (custom-theme-set-variables 'gruvbox-light-soft `(ansi-color-names-vector diff --git a/gruvbox-theme.el b/gruvbox-theme.el index 6aef2d5d20..1437eef43a 100644 --- a/gruvbox-theme.el +++ b/gruvbox-theme.el @@ -57,6 +57,7 @@ ((((class color) (min-colors #xFFFFFF)) ; col 1 GUI/24bit ((class color) (min-colors #xFF))) ; col 2 Xterm/256 + (gruvbox-dark0_hard "#1d2021" "#1c1c1c") (gruvbox-dark0 "#282828" "#262626") (gruvbox-dark0_soft "#32302f" "#303030") (gruvbox-dark1 "#3c3836" "#3a3a3a") @@ -112,7 +113,9 @@ (gruvbox-aquamarine4 "#83A598" "#87af87") (gruvbox-turquoise4 "#61ACBB" "#5fafaf") - (gruvbox-bg gruvbox-dark0)) + (gruvbox-bg gruvbox-dark0) + (gruvbox-bg_inactive gruvbox-dark0_soft) + ) (custom-theme-set-variables 'gruvbox `(ansi-color-names-vector diff --git a/gruvbox.el b/gruvbox.el index 7351fac8cd..e8c684da13 100644 --- a/gruvbox.el +++ b/gruvbox.el @@ -601,7 +601,11 @@ Should contain 2 %s constructs to allow for theme name and directory/prefix") (hydra-face-teal (:foreground gruvbox-bright_aqua :weight 'bold)) ;; which-function-mode - (which-func (:foreground gruvbox-faded_blue))) + (which-func (:foreground gruvbox-faded_blue)) + + ;; auto-dim-other-buffers + (auto-dim-other-buffers-face (:background gruvbox-bg_inactive)) + ) ,@body)) (provide 'gruvbox)