When the user sets its preference to ‘dark’ on Macos, the window decoration for Blender follows that preference, matching the other native apps on the platform.
GNOME and KDE Plasma now also support this dark style preference and it would be nice if Blender would opt in to support it, even if for the window decoration alone (by setting the window hint to _GTK_THEME_VARIANT=dark). Running a dark theme with a light window decoration creates a nasty out-of-place contrast.
Yes, unfortunately Ubuntu and Ubuntu derivatives like PopOS went the other route and force a stylesheet/theme for all apps rather than allowing apps to opt in to the preference. I can see how it can be hard to comprehend from the point of an app that supports arbitrary themes like Blender.
In the dark style preference world, Blender can be aware that the user prefers a dark style and could potentially pick a dark chrome for all of its UI (a concept that probably doesn’t exist), just like it exists on the web using media queries. But setting the WM hint sounded like a nice and easy first step.
You mean the title bar color? That is “non-client” area in that it is under the control of the OS. Here’s my system, set to Dark theme with a custom accent color set to black:
At the same time, this API does not affect compatibility with older versions, and on Windows 7 or earlier versions of Windows, the API will not work and will not cause strange errors.
This isn’t Blender specific but there is a program called “Mica For Everyone” which lets you force all window bars in Win11 to respect your proffered color scheme.
Here’s how it looks like with Blender:
Nope. That API call has been around for a while, but the use of DWMWA_CAPTION_COLOR has only been supported since Windows 11 Build 22000, as shown in the document you referenced.