Dark Title bar in Dark mode(Delete Please)

The existing title bar is white, enabling dark title bar will help us get a more unified UI.

Target

The Technology Path

Since Windows 10 1809, Microsoft has provided an API for modifying only the color of the window title bar.

The method reference is
stackoverflow.com/questions/39261826/change-the-color-of-the-title-bar-caption-of-a-win32-application

Documentation see
docs.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute

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.

5 Likes

Blender has done it

https://developer.blender.org/D14847

3 Likes

bringing this one back from the dead, anything on this? I still look at the title bar every day and wish it was dark.

ahh i see the possibility of it working on win 11 and not on 10 which if that’s the case i’m upgrading soon so thats cool i guess…

Hi @benjamin5,

You mean like this?

– Dael

1 Like

yep just like that, i’m looking at other posts which one linked this…
https://mcneel.myjetbrains.com/youtrack/issue/RH-75189
a fix in 8.2 or 8.3 more than likely


Highlight label color and title bar color should not use the same parameter

This is very strange. Why do the title bar, menu bar, and highlight label use the same parameter?

The title bar and menu bar should obviously use the same parameters.
And label color should use another parameter.

The color of the title bar and menu bar should generally be #202020 (in dark mode)
The label color should be defined by Rhino itself.

As Benjamin wrote, this is on the list as RH-75189 Rhino title bar on windows 10 always looks inactive
-wim

As a developer, I strongly recommend that you use Microsoft’s official API to implement dark window title bars instead of drawing your own.

This is Microsoft’s document, which describes how to use this API to make Win32 applications support the default dark/light title bar. This is the best way to implement the title bar color to follow the operating system. What’s more, it doesn’t cause errors in older systems (Windows 8/7/Vista/XP).

Trust me, this is the simplest solution.