mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[linux] debug for KDE
This commit is contained in:
@ -195,6 +195,7 @@ static void applyGtkTheme(bool isDark)
|
|||||||
const char *theme_dark = "Adwaita-dark";
|
const char *theme_dark = "Adwaita-dark";
|
||||||
if (!themeExists(theme_light) || !themeExists(theme_dark))
|
if (!themeExists(theme_light) || !themeExists(theme_dark))
|
||||||
return;
|
return;
|
||||||
|
qputenv("GTK_THEME", isDark ? theme_dark : theme_light);
|
||||||
if (GtkSettings *stn = gtk_settings_get_default())
|
if (GtkSettings *stn = gtk_settings_get_default())
|
||||||
g_object_set(stn, "gtk-theme-name", isDark ? theme_dark : theme_light, NULL);
|
g_object_set(stn, "gtk-theme-name", isDark ? theme_dark : theme_light, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user