Opticos / GWSL-Source

The actual code for GWSL. And some prebuilt releases.
https://opticos.github.io/gwsl/
Other
1.16k stars 79 forks source link

How i can change window color to dark? #152

Closed Grzyb9k closed 1 year ago

Grzyb9k commented 2 years ago

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

Pololot64 commented 2 years ago

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 commented 2 years ago

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

ChGen commented 2 years ago

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

Pololot64 commented 2 years ago

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