Skip to content

Commit

Permalink
[core] remove unuser desktopMode property
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Jul 10, 2024
1 parent 0263898 commit 1395a97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
11 changes: 0 additions & 11 deletions src/core/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,10 @@ Theme::Theme(QObject* parent)

loadDefaultValue();

MGConfItem* desktopModeValue = new MGConfItem(QStringLiteral("/nemo/apps/libglacier/desktopmode"));
m_themeValue = new MGConfItem(QStringLiteral("/nemo/apps/libglacier/themePath"));

m_desktopMode = desktopModeValue->value().toBool();
m_theme = m_themeValue->value().toString();

connect(desktopModeValue, &MGConfItem::valueChanged, this, &Theme::desktopModeValueChanged);
connect(m_themeValue, &MGConfItem::valueChanged, this, &Theme::themeValueChanged);

connect(size, &Sizing::dpScaleFactorChanged, this, &Theme::setThemeValues);

if (!m_theme.isEmpty()) {
Expand Down Expand Up @@ -257,12 +252,6 @@ void Theme::setThemeValues()
}
}

void Theme::desktopModeValueChanged()
{
m_desktopMode = MGConfItem(QStringLiteral("/nemo/apps/libglacier/desktopmode")).value().toBool();
emit desktopModeChanged();
}

void Theme::themeValueChanged()
{
m_theme = m_themeValue->value().toString();
Expand Down
6 changes: 0 additions & 6 deletions src/core/theme.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class Theme : public QObject {
Q_PROPERTY(QString textColor READ textColor NOTIFY textColorChanged)
Q_PROPERTY(QString backgroundColor READ backgroundColor NOTIFY backgroundColorChanged)
Q_PROPERTY(QString backgroundAccentColor READ backgroundAccentColor NOTIFY backgroundAccentColorChanged)

Q_PROPERTY(bool desktopMode READ desktopMode NOTIFY desktopModeChanged)
Q_PROPERTY(QString themePath READ themePath NOTIFY themeUpdate)

public:
Expand Down Expand Up @@ -89,8 +87,6 @@ class Theme : public QObject {
QString backgroundAccentColor() { return m_backgroundAccentColor; }

qreal iconSizeLauncher() { return m_iconSizeLauncher; }

bool desktopMode() { return m_desktopMode; }
QString themePath() { return m_theme; }

Sizing* size;
Expand Down Expand Up @@ -142,7 +138,6 @@ class Theme : public QObject {
void itemWidthExtraLargeChanged();

private slots:
void desktopModeValueChanged();
void themeValueChanged();

private:
Expand Down Expand Up @@ -183,7 +178,6 @@ private slots:
QString m_backgroundColor; //#000000
QString m_backgroundAccentColor; //#ffffff

bool m_desktopMode;
QString m_theme;

void loadDefaultValue();
Expand Down

0 comments on commit 1395a97

Please sign in to comment.