Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment Color Brightness #74

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions nord-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,21 @@
The theme has to be reloaded after changing anything in this group."
:group 'faces)

(defcustom nord-comment-brightness 0
(defcustom nord-comment-brightness 10
"Allows to define a custom comment color brightness with percentage adjustments from 0% - 20%.
The value must be greater or equal to 0 and less or equal to 20, otherwise the default 'nord3' color is used."
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!
The comment color brightness has been increased by 10% by default.
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
:type 'integer
:group 'nord)

(make-obsolete-variable
'nord-comment-brightness
"The custom color brightness feature has been deprecated and will be removed in version 1.0.0!
The comment color brightness has been increased by 10% by default.
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
"0.4.0")

(defcustom nord-region-highlight nil
"Allows to set a region highlight style based on the Nord components.
Valid styles are
Expand All @@ -70,12 +79,18 @@

(defun nord-theme--brightened-comment-color (percent)
"Returns the brightened comment color for the given percent.
The value must be greater or equal to 0 and less or equal to 20, otherwise the default 'nord3' color is used."
(if (and (integerp percent)
(>= percent 0)
(<= percent 20))
(nth percent nord-theme--brightened-comments)
(nth 0 nord-theme--brightened-comments)))
The value must be greater or equal to 0 and less or equal to 20, otherwise the default 'nord3' color is used.
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!
The comment color brightness has been increased by 10% by default.
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
(nth 10 nord-theme--brightened-comments))

(make-obsolete
'nord-theme--brightened-comment-color
"The custom color brightness feature has been deprecated and will be removed in version 1.0.0!\
The comment color brightness has been increased by 10% by default.\
Please see https://github.com/arcticicestudio/nord-emacs/issues/73 for more details."
"0.4.0")

;;;; Color Constants
(let ((class '((class color) (min-colors 89)))
Expand Down