[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/nano-theme 7ae6bd1204 10/21: Tentative fix for light &
From: |
ELPA Syncer |
Subject: |
[elpa] externals/nano-theme 7ae6bd1204 10/21: Tentative fix for light & dark frames (take 2) |
Date: |
Mon, 31 Jan 2022 11:57:49 -0500 (EST) |
branch: externals/nano-theme
commit 7ae6bd1204465b4a26ee625636006e4dba4deca2
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Tentative fix for light & dark frames (take 2)
---
nano-theme.el | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/nano-theme.el b/nano-theme.el
index 6f5cc47324..38aeaff552 100644
--- a/nano-theme.el
+++ b/nano-theme.el
@@ -498,29 +498,30 @@ background color that is barely perceptible."
(defun nano-theme (mode)
"Apply the nano theme according to MODE which can be 'dark or 'light."
+ (message (format "Theme applied: %s" mode))
+
(let ((light '((background light)))
(dark '((background dark)))
(theme (if (eq mode 'dark)
'nano-dark
'nano-light)))
-
-
- ;; (add-to-list 'default-frame-alist `(background-mode . ,mode))
- (add-to-list 'default-frame-alist `(background-color . ,(if (eq mode
'light)
-
nano-light-background
-
nano-dark-background)))
- (add-to-list 'default-frame-alist `(foreground-color . ,(if (eq mode
'light)
-
nano-light-foreground
-
nano-dark-foreground)))
+ (add-to-list 'default-frame-alist `(background-mode . ,mode))
+ (add-to-list 'default-frame-alist `(background-color . ,(if (eq mode
'light)
+
nano-light-background
+
nano-dark-background)))
+ (add-to-list 'default-frame-alist `(foreground-color . ,(if (eq mode
'light)
+
nano-light-foreground
+
nano-dark-foreground)))
(custom-set-variables '(widget-image-enable nil)
'(x-underline-at-descent-line t))
- (set-frame-parameter nil 'background-mode mode)
-;; (setq frame-background-mode mode)
-;; (setq nano-theme--current mode)
-;; (frame-set-background-mode (selected-frame))
+ ;; (set-frame-parameter nil 'background-mode mode)
+ (setq frame-background-mode mode)
+ (frame-set-background-mode (selected-frame))
+ ;; (setq nano-theme--current mode)
+ ;; (frame-set-background-mode (selected-frame))
(when nano-fonts-use
(custom-theme-set-faces theme
- [elpa] externals/nano-theme 4d783fd59c 04/21: Tentative fix to have both dark & light frames., (continued)
- [elpa] externals/nano-theme 4d783fd59c 04/21: Tentative fix to have both dark & light frames., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 5a6d0bb6d3 03/21: Removed line spacing settings., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 0e5da0383e 02/21: Change group description, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 717bb558ec 05/21: Made strings less salient, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 6699736681 17/21: Less salient flyspell, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 1a21254149 19/21: Less salient critical face., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme f54908d002 15/21: Added orderless faces, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme e2c43e7e4f 21/21: Merge remote-tracking branch 'origin/master', ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme bc4fe18895 09/21: Remode redundant default settings., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 8776b65304 12/21: Small change for the new NANO modeline., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 7ae6bd1204 10/21: Tentative fix for light & dark frames (take 2),
ELPA Syncer <=
- [elpa] externals/nano-theme b39e09042e 01/21: Made faded and popout more salient., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 165c8822da 06/21: Updated company mode., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 17be8fdc63 08/21: Made org-code to use default face., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 9013ad6c08 07/21: Update nano-modeline., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme ff81604a65 11/21: Went back to Deep Orange L200 for popout., ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 7c809e19bf 13/21: Added marginalia faces, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 55147bd553 16/21: Removed spurious debug message, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme ba8b37766e 14/21: Added corfu faces, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 63bd0b8411 18/21: Added (Victor Mono italic) to font stack, ELPA Syncer, 2022/01/31
- [elpa] externals/nano-theme 11362f22ba 20/21: Bumper version to 0.3.0, ELPA Syncer, 2022/01/31