[Auto Custom Titlebar Colors]: Smart ignore UWP Apps and browser windows with settings caching#4797
[Auto Custom Titlebar Colors]: Smart ignore UWP Apps and browser windows with settings caching#4797Louis047 wants to merge 3 commits into
Conversation
|
Keeping this as a draft until the user confirm it works. |
|
The user has confirmed that it works, but with a very minor caveat where they have to wait a second or two to let it work normally |
Submission reviewNote: This review was done by Claude, and then refined manually. Due to the amount of submissions, doing a fully manual review for each pull request is no longer feasible. Thank you for understanding. Please address the following issues. The items in the collapsed sections are optional, so it's your call whether to address them. 1. // UninitEnumWindowsProc — mods/auto-custom-titlebar-colors.wh.cpp:663
if (!IsWindowEligible(hWnd)) return TRUE;
BOOL off = FALSE;
DwmSetWindowAttribute(hWnd, DWMWA_USE_IMMERSIVE_DARK_MODE, &off, sizeof(off));
const COLORREF def = DWMWA_COLOR_DEFAULT;
DwmSetWindowAttribute(hWnd, DWMWA_CAPTION_COLOR, &def, sizeof(def));So when the mod is disabled/reloaded, any window the app itself colored gets its color blown away and reset to the system default — the opposite of "leave it alone". Since many apps set their caption color only once (at window creation), it won't come back until the app restarts. Skip windows in 2. static std::unordered_set<HWND> g_appControlledWindows; // never erased
...
static std::unordered_set<HWND> seenWindows; // never erasedTwo consequences in a long-lived, broadly-injected (
You already hook Optional improvements
Minor polish — none of this affects users, so it's your call.
Functionality notes
Non-critical observations about the feature behavior itself.
|
|
Noted, will work on this when I have the time. |
Changelog
Issue References