branch: externals/modus-themes
commit 753cdab306532d7618f3126cb31c6ab0e7069522
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make tweaks based on new modus-themes-get-theme-palette (per commit 264814f)
---
modus-themes.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modus-themes.el b/modus-themes.el
index 933487d111..d675b0f31c 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -1086,9 +1086,7 @@ the palette of that item. Else use the current Modus
theme.
If COLOR is not present in the palette, return the `unspecified'
symbol, which is safe when used as a face attribute's value."
- (if-let* ((palette (if theme
- (modus-themes--palette-value theme overrides)
- (modus-themes-get-theme-palette overrides)))
+ (if-let* ((palette (modus-themes-get-theme-palette theme overrides))
(value (modus-themes--retrieve-palette-value color palette)))
value
'unspecified))
@@ -1221,7 +1219,7 @@ PALETTE is the value of a variable like
`modus-operandi-palette'."
(defun modus-themes--list-colors-tabulated (theme &optional mappings)
"Return a data structure of THEME palette or MAPPINGS for tabulated list."
- (let* ((current-palette (modus-themes--palette-value theme mappings))
+ (let* ((current-palette (modus-themes-get-theme-palette theme mappings))
(palette (if mappings
(modus-themes--list-colors-get-mappings current-palette)
current-palette)))