Skip to content
Snippets Groups Projects
Commit 4855bade authored by akiraohgaki's avatar akiraohgaki
Browse files

Apply icon with xfce

parent 117434df
Loading
......@@ -110,7 +110,8 @@ bool SystemHandler::isApplicableType(const QString &installType) const
<< "gnome_shell_themes";
}
else if (desktop == "xfce") {
applicableTypes << "wallpapers";
applicableTypes << "wallpapers"
<< "icons";
}
return applicableTypes.contains(installType);
......@@ -161,6 +162,9 @@ bool SystemHandler::applyFile(const QString &path, const QString &installType) c
if (installType == "wallpapers") {
return applyXfceWallpaper(path);
}
else if (installType == "icons") {
return applyXfceIcon(themeName);
}
}
}
......@@ -301,4 +305,9 @@ bool SystemHandler::applyXfceWallpaper(const QString &path) const
{
return setConfigWithXfconf("xfce4-desktop", "/backdrop/screen0/monitor0/workspace0/last-image", path);
}
bool SystemHandler::applyXfceIcon(const QString &themeName) const
{
return setConfigWithXfconf("xsettings", "/Net/IconThemeName", themeName);
}
#endif
......@@ -39,5 +39,6 @@ private:
bool setConfigWithXfconf(const QString &channel, const QString &property, const QString &value) const;
bool applyXfceWallpaper(const QString &path) const;
bool applyXfceIcon(const QString &themeName) const;
#endif
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment