Skip to content

Commit 9ed7b9c

Browse files
Comment Color Brightness (#74)
Comment Color Brightness
2 parents c4e0b55 + 6a19e03 commit 9ed7b9c

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

nord-theme.el

+23-8
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,21 @@
4747
The theme has to be reloaded after changing anything in this group."
4848
:group 'faces)
4949

50-
(defcustom nord-comment-brightness 0
50+
(defcustom nord-comment-brightness 10
5151
"Allows to define a custom comment color brightness with percentage adjustments from 0% - 20%.
52-
The value must be greater or equal to 0 and less or equal to 20, otherwise the default 'nord3' color is used."
52+
As of version 0.4.0, this variable is obsolete/deprecated and has no effect anymore and will be removed in version 1.0.0!
53+
The comment color brightness has been increased by 10% by default.
54+
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
5355
:type 'integer
5456
:group 'nord)
5557

58+
(make-obsolete-variable
59+
'nord-comment-brightness
60+
"The custom color brightness feature has been deprecated and will be removed in version 1.0.0!
61+
The comment color brightness has been increased by 10% by default.
62+
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
63+
"0.4.0")
64+
5665
(defcustom nord-region-highlight nil
5766
"Allows to set a region highlight style based on the Nord components.
5867
Valid styles are
@@ -70,12 +79,18 @@
7079

7180
(defun nord-theme--brightened-comment-color (percent)
7281
"Returns the brightened comment color for the given percent.
73-
The value must be greater or equal to 0 and less or equal to 20, otherwise the default 'nord3' color is used."
74-
(if (and (integerp percent)
75-
(>= percent 0)
76-
(<= percent 20))
77-
(nth percent nord-theme--brightened-comments)
78-
(nth 0 nord-theme--brightened-comments)))
82+
The value must be greater or equal to 0 and less or equal to 20, otherwise the default 'nord3' color is used.
83+
As of version 0.4.0, this function is obsolete/deprecated and has no effect anymore and will be removed in version 1.0.0!
84+
The comment color brightness has been increased by 10% by default.
85+
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
86+
(nth 10 nord-theme--brightened-comments))
87+
88+
(make-obsolete
89+
'nord-theme--brightened-comment-color
90+
"The custom color brightness feature has been deprecated and will be removed in version 1.0.0!\
91+
The comment color brightness has been increased by 10% by default.\
92+
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
93+
"0.4.0")
7994

8095
;;;; Color Constants
8196
(let ((class '((class color) (min-colors 89)))

0 commit comments

Comments
 (0)