mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Always fallback to gtk icon theme
To inherit icon theme even on WM-based environments
This commit is contained in:
parent
107dea085c
commit
90af3d295b
1 changed files with 1 additions and 2 deletions
|
@ -253,11 +253,10 @@ void start() {
|
||||||
|
|
||||||
// change the icon theme only if it isn't already set by a platformtheme plugin
|
// change the icon theme only if it isn't already set by a platformtheme plugin
|
||||||
// if QT_QPA_PLATFORMTHEME=(gtk2|gtk3), then force-apply the icon theme
|
// if QT_QPA_PLATFORMTHEME=(gtk2|gtk3), then force-apply the icon theme
|
||||||
if ((((QIcon::themeName() == qstr("hicolor") // QGenericUnixTheme
|
if (((QIcon::themeName() == qstr("hicolor") // QGenericUnixTheme
|
||||||
&& QIcon::fallbackThemeName() == qstr("hicolor"))
|
&& QIcon::fallbackThemeName() == qstr("hicolor"))
|
||||||
|| (QIcon::themeName() == qstr("Adwaita") // QGnomeTheme
|
|| (QIcon::themeName() == qstr("Adwaita") // QGnomeTheme
|
||||||
&& QIcon::fallbackThemeName() == qstr("gnome")))
|
&& QIcon::fallbackThemeName() == qstr("gnome")))
|
||||||
&& DesktopEnvironment::IsGtkBased())
|
|
||||||
|| IsGtkIntegrationForced()) {
|
|| IsGtkIntegrationForced()) {
|
||||||
DEBUG_LOG(("Set GTK icon theme"));
|
DEBUG_LOG(("Set GTK icon theme"));
|
||||||
QIcon::setThemeName(gtkSetting("gtk-icon-theme-name"));
|
QIcon::setThemeName(gtkSetting("gtk-icon-theme-name"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue