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

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

[elpa] externals/standard-themes c27e3a1ec5 2/5: Make the overrides 'def


From: ELPA Syncer
Subject: [elpa] externals/standard-themes c27e3a1ec5 2/5: Make the overrides 'defcsutom' forms
Date: Wed, 1 Feb 2023 01:15:41 -0500 (EST)

branch: externals/standard-themes
commit c27e3a1ec5fa34edd1eea446fa03ee059cb2297e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make the overrides 'defcsutom' forms
---
 standard-dark-theme.el  | 8 ++++++--
 standard-light-theme.el | 8 ++++++--
 standard-themes.el      | 9 ++++++---
 3 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/standard-dark-theme.el b/standard-dark-theme.el
index c59cef2638..726e888915 100644
--- a/standard-dark-theme.el
+++ b/standard-dark-theme.el
@@ -220,7 +220,7 @@ Semantic color mappings have the form (MAPPING-NAME 
COLOR-NAME)
 with both as symbols.  The latter is a color that already exists
 in the palette and is associated with a HEX-VALUE.")
 
-  (defvar standard-dark-palette-overrides nil
+  (defcustom standard-dark-palette-overrides nil
     "Overrides for `standard-dark-palette'.
 
 Mirror the elements of the aforementioned palette, overriding
@@ -234,7 +234,11 @@ The idea of common overrides is to change semantic color
 mappings, such as to make the cursor red.  Wherea theme-specific
 overrides can also be used to change the value of a named color,
 such as what hexadecimal RGB value the red-warmer symbol
-represents.")
+represents."
+  :group 'standard-themes
+  :package-version '(standard-themes . "1.2.0")
+  :type '(repeat (list symbol (choice symbol string)))
+  :link '(info-link "(standard-themes) Palette overrides"))
 
   (standard-themes-theme standard-dark
                          standard-dark-palette
diff --git a/standard-light-theme.el b/standard-light-theme.el
index 3c00fbda31..3c7e518548 100644
--- a/standard-light-theme.el
+++ b/standard-light-theme.el
@@ -220,7 +220,7 @@ Semantic color mappings have the form (MAPPING-NAME 
COLOR-NAME)
 with both as symbols.  The latter is a color that already exists
 in the palette and is associated with a HEX-VALUE.")
 
-  (defvar standard-light-palette-overrides nil
+  (defcustom  standard-light-palette-overrides nil
     "Overrides for `standard-light-palette'.
 
 Mirror the elements of the aforementioned palette, overriding
@@ -234,7 +234,11 @@ The idea of common overrides is to change semantic color
 mappings, such as to make the cursor red.  Wherea theme-specific
 overrides can also be used to change the value of a named color,
 such as what hexadecimal RGB value the red-warmer symbol
-represents.")
+represents."
+  :group 'standard-themes
+  :package-version '(standard-themes . "1.2.0")
+  :type '(repeat (list symbol (choice symbol string)))
+  :link '(info-link "(standard-themes) Palette overrides"))
 
   (standard-themes-theme standard-light
                          standard-light-palette
diff --git a/standard-themes.el b/standard-themes.el
index fbe3a0c5fe..61426b449e 100644
--- a/standard-themes.el
+++ b/standard-themes.el
@@ -393,8 +393,7 @@ The default is a gray background color."
   :type 'boolean
   :link '(info-link "(standard-themes) Accented mode line"))
 
-;; TODO 2022-12-30: Make the palette overrides a `defcustom'
-(defvar standard-themes-common-palette-overrides nil
+(defcustom standard-themes-common-palette-overrides nil
   "Set palette overrides for all the Standard themes.
 
 Mirror the elements of a theme's palette, overriding their value.
@@ -413,7 +412,11 @@ The idea of common overrides is to change semantic color
 mappings, such as to make the cursor red.  Wherea theme-specific
 overrides can also be used to change the value of a named color,
 such as what hexadecimal RGB value the red-warmer symbol
-represents.")
+represents."
+  :group 'standard-themes
+  :package-version '(standard-themes . "1.2.0")
+  :type '(repeat (list symbol (choice symbol string)))
+  :link '(info-link "(standard-themes) Palette overrides"))
 
 ;;; Helpers for user options
 



reply via email to

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