Make this work on stable Cutefish

This commit is contained in:
Zachary Hall 2024-01-25 16:28:11 -08:00
parent 0f39f171d2
commit b82fa5b122
3 changed files with 0 additions and 10 deletions

View file

@ -41,11 +41,6 @@ QString DesktopSettings::wallpaper() const
return m_wallpaper;
}
bool DesktopSettings::backgroundVisible() const
{
return m_interface.property("backgroundVisible").toBool();
}
bool DesktopSettings::dimsWallpaper() const
{
return m_interface.property("darkModeDimsWallpaer").toBool();
@ -76,7 +71,6 @@ void DesktopSettings::init()
connect(&m_interface, SIGNAL(darkModeDimsWallpaerChanged()), this, SIGNAL(dimsWallpaperChanged()));
connect(&m_interface, SIGNAL(backgroundTypeChanged()), this, SIGNAL(backgroundTypeChanged()));
connect(&m_interface, SIGNAL(backgroundColorChanged()), this, SIGNAL(backgroundColorChanged()));
connect(&m_interface, SIGNAL(backgroundVisibleChanged()), this, SIGNAL(backgroundVisibleChanged()));
m_wallpaper = m_interface.property("wallpaper").toString();
emit wallpaperChanged();
}

View file

@ -28,7 +28,6 @@ class DesktopSettings : public QObject
Q_OBJECT
Q_PROPERTY(QString wallpaper READ wallpaper NOTIFY wallpaperChanged)
Q_PROPERTY(bool dimsWallpaper READ dimsWallpaper NOTIFY dimsWallpaperChanged)
Q_PROPERTY(bool backgroundVisible READ backgroundVisible NOTIFY backgroundVisibleChanged)
Q_PROPERTY(int backgroundType READ backgroundType NOTIFY backgroundTypeChanged)
Q_PROPERTY(QString backgroundColor READ backgroundColor NOTIFY backgroundColorChanged)
@ -37,7 +36,6 @@ public:
QString wallpaper() const;
bool dimsWallpaper() const;
bool backgroundVisible() const;
int backgroundType() const;
QString backgroundColor() const;
@ -48,7 +46,6 @@ signals:
void dimsWallpaperChanged();
void backgroundColorChanged();
void backgroundTypeChanged();
void backgroundVisibleChanged();
private slots:
void init();

View file

@ -26,7 +26,6 @@ Item {
Rectangle {
anchors.fill: parent
visible: settings.backgroundVisible
color: settings.backgroundColor
}
}