GWSL-Source icon indicating copy to clipboard operation
GWSL-Source copied to clipboard

How i can change window color to dark?

Open Grzyb9k opened this issue 3 years ago • 4 comments

In my WIndows 11 i use dark theme, but my phpstorm(and any other app) opened with GWSL have white window title bar. How i can change that?

image

Grzyb9k avatar May 20 '22 06:05 Grzyb9k

Unfortunately, you cannot change this as it is the default Windows titlebar. You can always use an app like Mica For Everyone to force dark titlebars around the OS but I haven't tested it.

Pololot64 avatar May 20 '22 14:05 Pololot64

I tested Mica For Everyone with a GWSL game: image

It seems to work. You can add a rule in the app for the process GWSL_vcxsrv and set the default titlebar mode to dark: image

Pololot64 avatar May 20 '22 14:05 Pololot64

Actually, there are Win32 APIs to support dark mode in Win32 based applications, like DwmSetWindowAttribute() So, title bars could be made dark: https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes

ChGen avatar Jul 20 '22 08:07 ChGen

The thing is, this code would have to be implemented into the vcxsrv source code which I would rather not do.

Pololot64 avatar Jul 24 '22 00:07 Pololot64