Auto Custom Titlebar Colors
Auto-switches titlebar dark/light mode with the Windows theme, with separate custom colours for active/inactive windows in both modes
Author: Lone
Combines automatic dark/light titlebar switching with per-mode, per-state custom colours. Inspired from the following mods:
Auto Dark Titlebar by Asteski
Windows 11 Custom Titlebar Colors by Th3Fanbus
Features
- Auto-detects Windows dark/light theme via registry and applies
DWMWA_USE_IMMERSIVE_DARK_MODE
- Custom titlebar colours for four independent states:
- Light Mode - Active window
- Light Mode - Inactive window
- Dark Mode - Active window
- Dark Mode - Inactive window
- Per-mode "Use Custom Colours" toggle -- leave off to keep system defaults for that mode
- Per-mode colour input format toggle -- choose between Hex (
RRGGBB) or separate R/G/B fields
- Real-time theme change detection (responds to
WM_SETTINGCHANGE / WM_DWMCOLORIZATIONCOLORCHANGED)
- New windows receive the correct style immediately via
CreateWindowEx hooks
- Dialog windows handled via
DefDlgProc hooks
- MDI frame windows (e.g.
mmc.exe, Event Viewer, Device Manager) handled via DefFrameProc hooks
- Live settings reload: colour changes apply instantly without restarting the process
- Exclude Mozilla Browsers toggle (default: on) -- skips Firefox, Zen Browser, Floorp, etc.; disable to re-enable titlebar colouring for those browsers
Colour Format
- Hex mode: enter a 6-character hex string, e.g.
FF0000 for red (no # prefix)
- RGB mode: enter R, G, B as integers 0-255 in separate fields
Custom colours are only applied when the corresponding "Use Custom Colours" toggle is enabled.
Notes
- Custom colours are enabled by default in v1.2.0 (
#FFFFFF/#E6E6E6 for light mode, #000000/#202020 for dark mode)
- UWP/WinUI windows (
ApplicationFrameWindow, WinUI 3, XAML islands) and core shell hosts are automatically skipped to avoid conflicts
- Windows whose caption colour is set by the application itself while the mod is loaded have that colour left untouched; only the dark/light mode is kept in sync
- Visual attributes apply seamlessly on window activation and theme changes