Skip to content

Draft: Improve appearance of titlebars in Windows 10 and 11 with server side decorations

Sasha Hale requested to merge dgsasha/gtk:main into main

Adds GDK_WIN32_IMMERSIVE_TITLEBAR and GDK_WIN32_TRANSPARENT_TITLEBAR environment variables.

On Windows 10 the titlebar will also now be set to dark mode if gtk-application-prefer-dark-theme is enabled.

This mainly adds two features: "immersive titlebars" and "transparent titlebars", which are enabled via environment variables (they could obviously be renamed still if needed).

Immersive titlebars sets the titlebar colors to the GTK theme's colors on Windows 11. It looks nice with Libadwaita which looked particularly bad with the light titlebar in dark mode.

2023-05-27

Transparent titlebars enables blur on the titlebar on Windows 11, as seen in many Windows 11 apps.

2023-05-27__1_

Edited by Sasha Hale

Merge request reports

Loading