Skip to content
Snippets Groups Projects
Commit 2ac308ff authored by akiraohgaki's avatar akiraohgaki
Browse files

Apply cursor with xfce

parent 4855bade
Branches
Tags
No related merge requests found
...@@ -111,7 +111,8 @@ bool SystemHandler::isApplicableType(const QString &installType) const ...@@ -111,7 +111,8 @@ bool SystemHandler::isApplicableType(const QString &installType) const
} }
else if (desktop == "xfce") { else if (desktop == "xfce") {
applicableTypes << "wallpapers" applicableTypes << "wallpapers"
<< "icons"; << "icons"
<< "cursors";
} }
return applicableTypes.contains(installType); return applicableTypes.contains(installType);
...@@ -165,6 +166,9 @@ bool SystemHandler::applyFile(const QString &path, const QString &installType) c ...@@ -165,6 +166,9 @@ bool SystemHandler::applyFile(const QString &path, const QString &installType) c
else if (installType == "icons") { else if (installType == "icons") {
return applyXfceIcon(themeName); return applyXfceIcon(themeName);
} }
else if (installType == "cursors") {
return applyXfceCursor(themeName);
}
} }
} }
...@@ -310,4 +314,9 @@ bool SystemHandler::applyXfceIcon(const QString &themeName) const ...@@ -310,4 +314,9 @@ bool SystemHandler::applyXfceIcon(const QString &themeName) const
{ {
return setConfigWithXfconf("xsettings", "/Net/IconThemeName", themeName); return setConfigWithXfconf("xsettings", "/Net/IconThemeName", themeName);
} }
bool SystemHandler::applyXfceCursor(const QString &themeName) const
{
return setConfigWithXfconf("xsettings", "/Gtk/CursorThemeName", themeName);
}
#endif #endif
...@@ -40,5 +40,6 @@ private: ...@@ -40,5 +40,6 @@ private:
bool setConfigWithXfconf(const QString &channel, const QString &property, const QString &value) const; bool setConfigWithXfconf(const QString &channel, const QString &property, const QString &value) const;
bool applyXfceWallpaper(const QString &path) const; bool applyXfceWallpaper(const QString &path) const;
bool applyXfceIcon(const QString &themeName) const; bool applyXfceIcon(const QString &themeName) const;
bool applyXfceCursor(const QString &themeName) const;
#endif #endif
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment