refactor(appearance): remove the unused background visibility

pull/18/head
reionwong 1 week ago
parent 27006837f8
commit 8ffd16336e

@ -26,7 +26,7 @@ Appearance::Appearance()
}
for (const char* member : {"darkModeChanged", "darkModeScheduleChanged", "wallpaperChanged",
"userWallpapersChanged", "wallpaperFoldersChanged", "continuousCornersChanged",
"backgroundVisibleChanged", "accentColorChanged", "backgroundTypeChanged",
"accentColorChanged", "backgroundTypeChanged",
"backgroundColorChanged", "cursorThemeChanged", "cursorSizeChanged",
"iconThemeChanged", "systemFontPointSizeChanged", "systemFontChanged"}) {
m_matches.push_back(m_service.onSignal(member, [this](const dbus::Message&) { reload(); }));
@ -256,9 +256,4 @@ void Appearance::setBackgroundColor(const std::string& color)
m_service.send("setBackgroundColor", color);
}
bool Appearance::backgroundVisible() const
{
return value<bool>("backgroundVisible", true);
}
} // namespace cutefish::appearance

@ -78,7 +78,6 @@ public:
// "#RRGGBB".
std::string backgroundColor() const;
void setBackgroundColor(const std::string& color);
bool backgroundVisible() const;
// After any value changed, or the service came or went.
base::Signal<> changed;

Loading…
Cancel
Save