Function: auto-dark--is-dark-mode-winreg

auto-dark--is-dark-mode-winreg is a natively compiled function defined in auto-dark.el.

Signature

(auto-dark--is-dark-mode-winreg)

Documentation

Use Emacs built-in Windows Registry function.

In order to determine if dark theme is enabled.

Source Code

;; Defined in /nix/store/fxsazwcy8jcsigjhcydkb81ip47xqcw0-emacs-packages-deps/share/emacs/site-lisp/elpa/auto-dark-20260313.2356/auto-dark.el
(defun auto-dark--is-dark-mode-winreg ()
  "Use Emacs built-in Windows Registry function.
In order to determine if dark theme is enabled."
  ;; FIXME: We shouldn’t need to check `fboundp' on every call, just when
  ;;        setting the detection method.
  (when (fboundp 'w32-read-registry)
    (eq 0
        (w32-read-registry
         'HKCU
         "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"
         "AppsUseLightTheme"))))