]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1834: MS-Windows: not possible to highlight the title bar v9.1.1834
authorMao-Yining <mao.yining@outlook.com>
Tue, 7 Oct 2025 19:31:22 +0000 (19:31 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 7 Oct 2025 19:41:59 +0000 (19:41 +0000)
commit2c093682738cb2e01864aa2934b7bafdb277c011
tree2eaabaab84188ca889caa6ef84dd33607e89df73
parentf8b9251d8f3856b5a2fd19404ec28376c71e21de
patch 9.1.1834: MS-Windows: not possible to highlight the title bar

Problem:  MS-Windows: not possible to highlight the title bar
Solution: Make the title/caption bar configurable by introducing the
          'go-C' option value which allows to highlight it using the
          TitleBar and TitleBarNC highlighting groups (Mao-Yining).

Introduce titlebar color customization for Windows 11 GUI through
highlight groups and new 'guioptions' flag:

- Add 'C' flag to enable titlebar color customization (opt-in)
- New highlight groups: TitleBar (active) and TitleBarNC (inactive)
- Uses DWMWA_CAPTION_COLOR and DWMWA_TEXT_COLOR DWM attributes
- Dynamically loads dwmapi.dll for Windows 11 compatibility
- Defaults to system colors when set to NONE or feature disabled

closes: #18449

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 files changed:
ci/hlgroups.ignore
runtime/doc/gui_w32.txt
runtime/doc/options.txt
runtime/doc/syntax.txt
runtime/doc/tags
runtime/doc/version9.txt
runtime/syntax/vim.vim
src/gui.c
src/gui.h
src/gui_w32.c
src/highlight.c
src/option.h
src/os_win32.c
src/proto/gui_w32.pro
src/testdir/test_gui.vim
src/version.c