summaryrefslogtreecommitdiffhomepage
path: root/lib/themes/jao-themes.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/themes/jao-themes.el')
-rw-r--r--lib/themes/jao-themes.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/themes/jao-themes.el b/lib/themes/jao-themes.el
index d3f6baa..90be19f 100644
--- a/lib/themes/jao-themes.el
+++ b/lib/themes/jao-themes.el
@@ -1165,10 +1165,12 @@
(f-alist (assq-delete-all 'foreground-color f-alist)))
(when jao-themes--fg
(push (cons 'foreground-color jao-themes--fg) f-alist)
- (set-frame-parameter nil 'foreground-color jao-themes--fg))
+ (when (stringp jao-themes--fg)
+ (set-frame-parameter nil 'foreground-color jao-themes--fg)))
(when jao-themes--bg
(push (cons 'background-color jao-themes--bg) f-alist)
- (set-frame-parameter nil 'background-color jao-themes--fg))
+ (when (stringp jao-themes--bg)
+ (set-frame-parameter nil 'background-color jao-themes--bg)))
(setq window-system-default-frame-alist
(cons
(cons kind f-alist)