Fix OpenConsole dark mode for title bar and scrollbars#20076
Fix OpenConsole dark mode for title bar and scrollbars#20076maaamahAhh wants to merge 1 commit intomicrosoft:mainfrom
Conversation
- Implement TrySetDarkMode to detect system theme via registry - Use DwmSetWindowAttribute with DWMWA_USE_IMMERSIVE_DARK_MODE for title bar - Use SetWindowTheme with DarkMode_Explorer for scrollbar theming Fixes microsoft#17831
DHowett
left a comment
There was a problem hiding this comment.
I'm sorry, it looks like your PR makes unintended changes to the code you did not touch. Please recalibrate your LLM agent to not do that.
Other notes: this is not a stub, so it does not belong in the "stubs" section
DarkMode_Explorer is still a private API, and we cannot use it in this public code.
|
@maaamahAhh please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Fixes #17831. Implemented TrySetDarkMode to detect system theme and apply dark mode to title bar (via DwmSetWindowAttribute) and scrollbars (via SetWindowTheme with DarkMode_Explorer theme).