Variable: erc-nicks-color-adjustments
erc-nicks-color-adjustments is a customizable variable defined in
erc-nicks.el.gz.
Value
(erc-nicks-add-contrast erc-nicks-cap-contrast erc-nicks-ensaturate)
Documentation
Treatments applied to improve aesthetics or visibility.
For example, the function erc-nicks-invert inverts a nick when
it's too close to the background, and erc-nicks-add-contrast
attempts to find a decent contrast ratio by brightening or
darkening. When erc-nicks-colors is set to the symbol
defined or a user-provided list of colors, ERC uses this option
as a guide for culling any colors that don't fall within
erc-nicks-contrast-range or erc-nicks-saturation-range, as
appropriate. For example, if erc-nicks-cap-contrast is present
in this option's value, and a color's contrast exceeds the CDR of
erc-nicks-contrast-range, ERC will purge that color from its
rolls when initializing this module. Specify a value of nil to
inhibit this process.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-nicks.el.gz
(defcustom erc-nicks-color-adjustments
'(erc-nicks-add-contrast erc-nicks-cap-contrast erc-nicks-ensaturate)
"Treatments applied to improve aesthetics or visibility.
For example, the function `erc-nicks-invert' inverts a nick when
it's too close to the background, and `erc-nicks-add-contrast'
attempts to find a decent contrast ratio by brightening or
darkening. When `erc-nicks-colors' is set to the symbol
`defined' or a user-provided list of colors, ERC uses this option
as a guide for culling any colors that don't fall within
`erc-nicks-contrast-range' or `erc-nicks-saturation-range', as
appropriate. For example, if `erc-nicks-cap-contrast' is present
in this option's value, and a color's contrast exceeds the CDR of
`erc-nicks-contrast-range', ERC will purge that color from its
rolls when initializing this module. Specify a value of nil to
inhibit this process."
:type '(repeat
(choice (function-item :tag "Invert" erc-nicks-invert)
(function-item :tag "Add contrast" erc-nicks-add-contrast)
(function-item :tag "Cap contrast" erc-nicks-cap-contrast)
(function-item :tag "Bound saturation" erc-nicks-ensaturate)
function)))