2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Change color of wayland decoration according to theme

This commit is contained in:
Ilya Fedin
2020-04-25 08:43:19 +04:00
committed by John Preston
parent 46d4b03d49
commit 161e51757c
7 changed files with 111 additions and 11 deletions

View File

@@ -634,7 +634,14 @@ void start() {
qputenv("PULSE_PROP_application.name", AppName.utf8());
qputenv("PULSE_PROP_application.icon_name", GetIconName().toLatin1());
if(IsStaticBinary()
if(IsStaticBinary()
|| InAppImage()
|| InSandbox()
|| InSnap()) {
qputenv("QT_WAYLAND_DECORATION", "material");
}
if(IsStaticBinary()
|| InAppImage()
|| InSnap()
|| IsGtkFileDialogForced()) {