diff --git a/app/src/handlers/systemhandler.cpp b/app/src/handlers/systemhandler.cpp index b547e41cbe58ee53ce7da822f2e690478668536b..6ea5ad756881136cf804bd289f98cd1fd178a938 100644 --- a/app/src/handlers/systemhandler.cpp +++ b/app/src/handlers/systemhandler.cpp @@ -112,7 +112,8 @@ bool SystemHandler::isApplicableType(const QString &installType) const else if (desktop == "xfce") { applicableTypes << "wallpapers" << "icons" - << "cursors"; + << "cursors" + << "gtk3_themes"; } return applicableTypes.contains(installType); @@ -169,6 +170,9 @@ bool SystemHandler::applyFile(const QString &path, const QString &installType) c else if (installType == "cursors") { return applyXfceCursor(themeName); } + else if (installType == "gtk3_themes") { + return applyXfceGtk3Theme(themeName); + } } } @@ -319,4 +323,9 @@ bool SystemHandler::applyXfceCursor(const QString &themeName) const { return setConfigWithXfconf("xsettings", "/Gtk/CursorThemeName", themeName); } + +bool SystemHandler::applyXfceGtk3Theme(const QString &themeName) const +{ + return setConfigWithXfconf("xsettings", "/Net/ThemeName", themeName); +} #endif diff --git a/app/src/handlers/systemhandler.h b/app/src/handlers/systemhandler.h index a3922287f3ca79a9ebc568271ef24b35167ceaa6..918e58dcc2e44e073b01c62cbfc26d7c703d5a45 100644 --- a/app/src/handlers/systemhandler.h +++ b/app/src/handlers/systemhandler.h @@ -41,5 +41,6 @@ private: bool applyXfceWallpaper(const QString &path) const; bool applyXfceIcon(const QString &themeName) const; bool applyXfceCursor(const QString &themeName) const; + bool applyXfceGtk3Theme(const QString &themeName) const; #endif };