refactor(appearance): remove the dark mode wallpaper dimming property

pull/18/head
reionwong 3 weeks ago
parent ee0dd83658
commit 51e42cf1a8

@ -40,8 +40,6 @@ void Appearance::init()
connect(m_interface, SIGNAL(wallpaperFolderImagesChanged(QString)), this,
SIGNAL(wallpaperFolderImagesChanged(QString)));
connect(m_interface, SIGNAL(accentColorChanged(int)), this, SIGNAL(accentColorIndexChanged()));
connect(m_interface, SIGNAL(darkModeDimsWallpaerChanged()), this,
SIGNAL(dimsWallpaperChanged()));
connect(m_interface, SIGNAL(continuousCornersChanged(bool)), this,
SLOT(onContinuousCornersChanged(bool)));
connect(m_interface, SIGNAL(systemFontPointSizeChanged()), this,
@ -58,7 +56,6 @@ void Appearance::init()
emit userWallpapersChanged();
emit wallpaperFoldersChanged();
emit accentColorIndexChanged();
emit dimsWallpaperChanged();
emit continuousCornersChanged();
emit fontPointSizeChanged();
emit fontFamilyChanged();
@ -90,16 +87,6 @@ void Appearance::switchDarkMode(bool darkMode)
callService("setDarkMode", darkMode);
}
bool Appearance::dimsWallpaper() const
{
return serviceProperty("darkModeDimsWallpaer").toBool();
}
void Appearance::setDimsWallpaper(bool value)
{
callService("setDarkModeDimsWallpaer", value);
}
// Without the service there is nothing to read, so the default applies.
bool Appearance::continuousCorners() const
{

@ -14,8 +14,6 @@ class Appearance : public QObject
{
Q_OBJECT
Q_PROPERTY(bool darkMode READ darkMode NOTIFY darkModeChanged)
Q_PROPERTY(bool dimsWallpaper READ dimsWallpaper WRITE setDimsWallpaper NOTIFY
dimsWallpaperChanged)
Q_PROPERTY(bool continuousCorners READ continuousCorners WRITE setContinuousCorners NOTIFY
continuousCornersChanged)
Q_PROPERTY(int accentColorIndex READ accentColorIndex NOTIFY accentColorIndexChanged)
@ -40,9 +38,6 @@ public:
bool darkMode() const;
Q_INVOKABLE void switchDarkMode(bool darkMode);
bool dimsWallpaper() const;
Q_INVOKABLE void setDimsWallpaper(bool value);
// Whether rounded corners are drawn as continuous curves, the same shape
// the compositor gives window silhouettes. On until turned off.
bool continuousCorners() const;
@ -86,7 +81,6 @@ public:
signals:
void darkModeChanged();
void dimsWallpaperChanged();
void continuousCornersChanged();
void accentColorIndexChanged();
void fontPointSizeChanged();

Loading…
Cancel
Save