Variable: pdf-view-midnight-gamma-before-invert

pdf-view-midnight-gamma-before-invert is a customizable variable defined in pdf-view.el.

Value

nil

Documentation

In midnight mode, whether to scale lightness before inverting.

If non-nil, this inverts the direction of the effect of pdf-view-midnight-gamma, i.e. values more than 1 increase lightness instead of decreasing it. This option is provided because it results in different behaviors near the ends of the lightness scale. For example, if this option is nil (the default), then a gamma values less than 1 significantly lighten colors very close to black. One gets a less extreme effect by setting this option to non-nil and using gamma values greater than 1.

Source Code

;; Defined in /nix/store/63h5z2vmzn0mfavcxi2idi23g5xcgkbl-emacs-packages-deps/share/emacs/site-lisp/elpa/pdf-tools-20260102.1101/pdf-view.el
(defcustom pdf-view-midnight-gamma-before-invert nil
  "In midnight mode, whether to scale lightness before inverting.

If non-nil, this inverts the direction of the effect of
`pdf-view-midnight-gamma', i.e. values more than 1 increase lightness
instead of decreasing it. This option is provided because it results in
different behaviors near the ends of the lightness scale. For example,
if this option is nil (the default), then a gamma values less than 1
significantly lighten colors very close to black. One gets a less
extreme effect by setting this option to non-nil and using gamma values
greater than 1."
  :group 'pdf-view
  :type 'boolean)