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

Apply xfwm4 theme with xfce

parent 169a2a97
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,8 @@ bool SystemHandler::isApplicableType(const QString &installType) const
applicableTypes << "wallpapers"
<< "icons"
<< "cursors"
<< "gtk3_themes";
<< "gtk3_themes"
<< "xfwm4_themes";
}
return applicableTypes.contains(installType);
......@@ -173,6 +174,9 @@ bool SystemHandler::applyFile(const QString &path, const QString &installType) c
else if (installType == "gtk3_themes") {
return applyXfceGtk3Theme(themeName);
}
else if (installType == "xfwm4_themes") {
return applyXfceXfwm4Theme(themeName);
}
}
}
......@@ -328,4 +332,9 @@ bool SystemHandler::applyXfceGtk3Theme(const QString &themeName) const
{
return setConfigWithXfconf("xsettings", "/Net/ThemeName", themeName);
}
bool SystemHandler::applyXfceXfwm4Theme(const QString &themeName) const
{
return setConfigWithXfconf("xfwm4", "/general/theme", themeName);
}
#endif
......@@ -42,5 +42,6 @@ private:
bool applyXfceIcon(const QString &themeName) const;
bool applyXfceCursor(const QString &themeName) const;
bool applyXfceGtk3Theme(const QString &themeName) const;
bool applyXfceXfwm4Theme(const QString &themeName) const;
#endif
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment