From 3c3e3b26314d0e12a063155c70997b89071b4af6 Mon Sep 17 00:00:00 2001 From: arturfabriciohahaedgy Date: Fri, 16 Dec 2022 09:23:43 -0300 Subject: [PATCH 1/2] rainbow-delimiters support for gruber-darker. --- gruber-darker-theme.el | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/gruber-darker-theme.el b/gruber-darker-theme.el index 1afcea5..b03f9f2 100644 --- a/gruber-darker-theme.el +++ b/gruber-darker-theme.el @@ -33,10 +33,19 @@ ;; variant of the Gruber Dark theme for BBEdit by John Gruber. Adapted ;; for deftheme and extended by Alexey Kutepov a.k.a. rexim. - (deftheme gruber-darker "Gruber Darker color theme for Emacs 24") +;; Monokai colors for rainbow-delimiters. +(defcustom gruber-theme-yellow "#E6DB74" "Primary colors - yellow" :type 'string :group 'monokai) +(defcustom gruber-theme-orange "#FD971F" "Primary colors - orange" :type 'string :group 'monokai) +(defcustom gruber-theme-red "#F92672" "Primary colors - red" :type 'string :group 'monokai) +(defcustom gruber-theme-magenta "#FD5FF0" "Primary colors - magenta" :type 'string :group 'monokai) +(defcustom gruber-theme-blue "#66D9EF" "Primary colors - blue" :type 'string :group 'monokai) +(defcustom gruber-theme-green "#A6E22E" "Primary colors - green" :type 'string :group 'monokai) +(defcustom gruber-theme-cyan "#A1EFE4" "Primary colors - cyan" :type 'string :group 'monokai) +(defcustom gruber-theme-violet "#AE81FF" "Primary colors - violet" :type 'string :group 'monokai) + ;; Please, install rainbow-mode. ;; Colors with +x are lighter. Colors with -x are darker. (let ((gruber-darker-fg "#e4e4ef") @@ -383,7 +392,21 @@ `(term-color-cyan ((t (:foreground ,gruber-darker-quartz :background ,gruber-darker-quartz)))) `(term-color-white ((t (:foreground ,gruber-darker-fg :background ,gruber-darker-white)))) - ;;;;; company-mode +;;;;; rainbow-delimiters + `(rainbow-delimiters-depth-1-face ((t (:foreground ,gruber-theme-violet)))) + `(rainbow-delimiters-depth-2-face ((t (:foreground ,gruber-theme-blue)))) + `(rainbow-delimiters-depth-3-face ((t (:foreground ,gruber-theme-green)))) + `(rainbow-delimiters-depth-4-face ((t (:foreground ,gruber-theme-yellow)))) + `(rainbow-delimiters-depth-5-face ((t (:foreground ,gruber-theme-orange)))) + `(rainbow-delimiters-depth-6-face ((t (:foreground ,gruber-theme-red)))) + `(rainbow-delimiters-depth-7-face ((t (:foreground ,gruber-theme-violet)))) + `(rainbow-delimiters-depth-8-face ((t (:foreground ,gruber-theme-blue)))) + `(rainbow-delimiters-depth-9-face ((t (:foreground ,gruber-theme-green)))) + `(rainbow-delimiters-depth-10-face ((t (:foreground ,gruber-theme-yellow)))) + `(rainbow-delimiters-depth-11-face ((t (:foreground ,gruber-theme-orange)))) + `(rainbow-delimiters-depth-12-face ((t (:foreground ,gruber-theme-red)))) + +;;;;; company-mode `(company-tooltip ((t (:foreground ,gruber-darker-fg :background ,gruber-darker-bg+1)))) `(company-tooltip-annotation ((t (:foreground ,gruber-darker-brown :background ,gruber-darker-bg+1)))) `(company-tooltip-annotation-selection ((t (:foreground ,gruber-darker-brown :background ,gruber-darker-bg-1)))) @@ -396,7 +419,7 @@ `(company-preview ((t (:background ,gruber-darker-green)))) `(company-preview-common ((t (:foreground ,gruber-darker-green :background ,gruber-darker-bg-1)))) - ;;;;; Proof General +;;;;; Proof General `(proof-locked-face ((t (:background ,gruber-darker-niagara-2)))) )) From ce89ff3ade4c46a43baa4f1dc8393fe9cd2022c9 Mon Sep 17 00:00:00 2001 From: arturfabriciohahaedgy Date: Sat, 31 Dec 2022 12:02:21 -0300 Subject: [PATCH 2/2] changed the formating to be closer to master --- gruber-darker-theme.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gruber-darker-theme.el b/gruber-darker-theme.el index b03f9f2..2650155 100644 --- a/gruber-darker-theme.el +++ b/gruber-darker-theme.el @@ -392,7 +392,7 @@ `(term-color-cyan ((t (:foreground ,gruber-darker-quartz :background ,gruber-darker-quartz)))) `(term-color-white ((t (:foreground ,gruber-darker-fg :background ,gruber-darker-white)))) -;;;;; rainbow-delimiters + ;; rainbow-delimiters `(rainbow-delimiters-depth-1-face ((t (:foreground ,gruber-theme-violet)))) `(rainbow-delimiters-depth-2-face ((t (:foreground ,gruber-theme-blue)))) `(rainbow-delimiters-depth-3-face ((t (:foreground ,gruber-theme-green)))) @@ -406,7 +406,7 @@ `(rainbow-delimiters-depth-11-face ((t (:foreground ,gruber-theme-orange)))) `(rainbow-delimiters-depth-12-face ((t (:foreground ,gruber-theme-red)))) -;;;;; company-mode + ;;;;; company-mode `(company-tooltip ((t (:foreground ,gruber-darker-fg :background ,gruber-darker-bg+1)))) `(company-tooltip-annotation ((t (:foreground ,gruber-darker-brown :background ,gruber-darker-bg+1)))) `(company-tooltip-annotation-selection ((t (:foreground ,gruber-darker-brown :background ,gruber-darker-bg-1)))) @@ -419,7 +419,7 @@ `(company-preview ((t (:background ,gruber-darker-green)))) `(company-preview-common ((t (:foreground ,gruber-darker-green :background ,gruber-darker-bg-1)))) -;;;;; Proof General + ;;;;; Proof General `(proof-locked-face ((t (:background ,gruber-darker-niagara-2)))) ))