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

Apply metacity theme with cinnamon

parent 7cdea329
Branches
Tags
No related merge requests found
......@@ -30,6 +30,11 @@ bool CinnamonTheme::applyAsGtk3Theme() const
return setConfig("org.cinnamon.desktop.interface", "gtk-theme", themeName_);
}
bool CinnamonTheme::applyAsMetacityTheme() const
{
return setConfig("org.cinnamon.desktop.wm.preferences", "name", themeName_);
}
bool CinnamonTheme::applyAsCinnamonTheme() const
{
return setConfig("org.cinnamon.theme", "name", themeName_);
......
......@@ -13,6 +13,7 @@ public:
bool applyAsIcon() const;
bool applyAsCursor() const;
bool applyAsGtk3Theme() const;
bool applyAsMetacityTheme() const;
bool applyAsCinnamonTheme() const;
private:
......
......@@ -82,6 +82,7 @@ bool DesktopThemeHandler::isApplicableType(const QString &installType) const
<< "icons"
<< "cursors"
<< "gtk3_themes"
<< "metacity_themes"
<< "cinnamon_themes";
}
else if (desktop == "mate") {
......@@ -169,6 +170,9 @@ bool DesktopThemeHandler::applyTheme(const QString &path, const QString &install
else if (installType == "gtk3_themes") {
return cinnamonTheme.applyAsGtk3Theme();
}
else if (installType == "metacity_themes") {
return cinnamonTheme.applyAsMetacityTheme();
}
else if (installType == "cinnamon_themes") {
return cinnamonTheme.applyAsCinnamonTheme();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment