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>
This commit is contained in:
committed by
Christian Brabandt
parent
f8b9251d8f
commit
2c09368273
@ -422,6 +422,11 @@ typedef struct Gui
|
||||
guicolor_T currFgColor; // Current foreground text color
|
||||
guicolor_T currBgColor; // Current background text color
|
||||
guicolor_T currSpColor; // Current special text color
|
||||
|
||||
guicolor_T title_bg_pixel; // window title bar color
|
||||
guicolor_T title_fg_pixel; // window title bar's text color
|
||||
guicolor_T titlenc_bg_pixel; // window title bar color not current
|
||||
guicolor_T titlenc_fg_pixel; // window title bar's text color not current
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_GUI_HAIKU
|
||||
|
||||
Reference in New Issue
Block a user