]> git.eshelyaron.com Git - emacs.git/commit
Support system dark mode on Windows 10 version 1809 and higher
authorVince Salvino <salvino@coderedcorp.com>
Wed, 27 Oct 2021 21:32:09 +0000 (17:32 -0400)
committerEli Zaretskii <eliz@gnu.org>
Sat, 30 Oct 2021 09:55:35 +0000 (12:55 +0300)
commitc79d8fa4163faf83796446b330225986ce5db275
tree809acc5ba440eceac28002d28de5742cfe8ad39d
parentc30f95078c0735447c0bf293f2e6f573bc7057a3
Support system dark mode on Windows 10 version 1809 and higher

* src/w32fns.c (DARK_MODE_APP_NAME)
(DWMWA_USE_IMMERSIVE_DARK_MODE_OLD)
(DWMWA_USE_IMMERSIVE_DARK_MODE): Define.
(w32_applytheme): New function.
(w32_createvscrollbar, w32_createhscrollbar, w32_createwindow):
Call 'w32_applytheme'.
(globals_of_w32fns): Load 'DwmSetWindowAttribute' and
'SetWindowTheme' from their DLLs, and initialize 'w32_darkmode'.
* src/w32.c (w32_get_resource): Accept an additional argument
instead of hard-coding REG_ROOT; callers changed.  (Bug#51404)

* etc/NEWS:
* doc/emacs/msdos.texi (Windows Misc): Document the new feature.
doc/emacs/msdos.texi
etc/NEWS
src/w32.c
src/w32.h
src/w32fns.c