refactor(settings): remove obsolete system effects setting

main
reionwong 2 months ago
parent 6865651d3f
commit 13ea36b47d

@ -41,7 +41,6 @@ Appearance::Appearance(QObject *parent)
, m_dockDirection(0)
, m_dockVisibility(0)
, m_fontPointSize(11)
, m_systemEffects(false)
{
m_dockIconSize = m_dockSettings->value("IconSize").toInt();
m_dockDirection = m_dockSettings->value("Direction").toInt();
@ -50,9 +49,6 @@ Appearance::Appearance(QObject *parent)
// Dock only supports the centered style. Migrate old Full style settings.
m_dockSettings->setValue("Style", 0);
m_kwinSettings->beginGroup("Compositing");
m_systemEffects = !m_kwinSettings->value("OpenGLIsUnsafe", false).toBool();
m_kwinSettings->endGroup();
m_kwinSettings->beginGroup("Plugins");
m_minimiumAnimation = m_kwinSettings->value("magiclampEnabled").toBool() ? 1 : 0;
m_kwinSettings->endGroup();
@ -233,24 +229,6 @@ void Appearance::setDevicePixelRatio(double value)
}
}
bool Appearance::systemEffects() const
{
return m_systemEffects;
}
void Appearance::setSystemEffects(bool systemEffects)
{
if (m_systemEffects != systemEffects) {
m_systemEffects = systemEffects;
m_kwinSettings->beginGroup("Compositing");
m_kwinSettings->setValue("OpenGLIsUnsafe", !systemEffects);
m_kwinSettings->endGroup();
m_kwinSettings->sync();
QDBusInterface("org.kde.KWin", "/KWin").call("reconfigure");
emit systemEffectsChanged();
}
}
int Appearance::minimiumAnimation() const
{
return m_minimiumAnimation;

@ -34,7 +34,6 @@ class Appearance : public QObject
Q_PROPERTY(bool dimsWallpaper READ dimsWallpaper WRITE setDimsWallpaper NOTIFY dimsWallpaperChanged)
Q_PROPERTY(double devicePixelRatio READ devicePixelRatio WRITE setDevicePixelRatio NOTIFY devicePixelRatioChanged)
Q_PROPERTY(bool dockRoundedWindow READ dockRoundedWindow WRITE setDockRoundedWindow NOTIFY dockRoundedWindowChanged)
Q_PROPERTY(bool systemEffects READ systemEffects WRITE setSystemEffects NOTIFY systemEffectsChanged)
Q_PROPERTY(int minimiumAnimation READ minimiumAnimation WRITE setMinimiumAnimation NOTIFY minimiumAnimationChanged)
public:
@ -68,9 +67,6 @@ public:
double devicePixelRatio() const;
Q_INVOKABLE void setDevicePixelRatio(double value);
bool systemEffects() const;
void setSystemEffects(bool systemEffects);
int minimiumAnimation() const;
void setMinimiumAnimation(int minimiumAnimation);
@ -82,7 +78,6 @@ signals:
void dimsWallpaperChanged();
void devicePixelRatioChanged();
void dockRoundedWindowChanged();
void systemEffectsChanged();
void minimiumAnimationChanged();
private:
@ -96,7 +91,6 @@ private:
int m_dockVisibility;
int m_fontPointSize;
bool m_systemEffects;
int m_minimiumAnimation;
};

@ -92,25 +92,6 @@ ItemPage {
rightPadding: 0
}
}
RowLayout {
Label {
text: qsTr("System effects")
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
}
Item {
Layout.fillWidth: true
}
Switch {
checked: appearance.systemEffects
Layout.fillHeight: true
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
onCheckedChanged: appearance.systemEffects = checked
rightPadding: 0
}
}
}
RoundedItem {

@ -33,7 +33,7 @@ FishUI.Window {
flags: Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
background.color: FishUI.Theme.secondBackgroundColor
background.opacity: control.compositing ? 0.5 : 1.0
background.opacity: 0.5
contentTopMargin: 0
onWidthChanged: control.reset()

@ -38,7 +38,7 @@ Item {
anchors.fill: parent
color: FishUI.Theme.darkMode ? Qt.lighter(FishUI.Theme.backgroundColor, 1.5)
: Qt.darker(FishUI.Theme.backgroundColor, 1.05)
opacity: rootWindow.compositing ? 0.7 : 1.0
opacity: 0.7
Behavior on color {
ColorAnimation {

@ -123,11 +123,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>গাঢ় থিমে ওয়ালপেপার ম্লান করুন</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>সিস্টেমের প্রভাব</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -123,11 +123,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>עמעם את רקע שולחן העבודה בעיצוב כהה</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>אפקטים של המערכת</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="118"/>
<source>Accent color</source>

@ -123,11 +123,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>Zamrači pozadinu u Tamnoj temi</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>Sistemski efekti</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>ダークテーマで壁紙を暗くする</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>システム効果</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="97"/>
<source>System effects</source>
<translation>Sistemos efektai</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="117"/>
<source>Accent color</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>Aptumšot fonu tumšajā motīvā</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>Sistēmas efekti</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="118"/>
<source>Accent color</source>

@ -90,11 +90,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>Hampifanarahana amin&apos;ny loha-hevitra Maizina ny fond d&apos;ecran</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>Fijejojejoana</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>ഇരുണ്ട wallpaper ഇല് ഇരുണ്ട തീം</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="97"/>
<source>System effects</source>
<translation>System എഫക്</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="117"/>
<source>Accent color</source>

@ -123,11 +123,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>Verduister de bureaubladachtergrond van het donkere thema</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>Systeemanimaties</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>întunecă imaginea de fundal în tema întunecată</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="97"/>
<source>System effects</source>
<translation>Efecte de sistem</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="117"/>
<source>Accent color</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>Zatamni pozadinu u tamnom režimu</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>Sistemski efekti</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -136,11 +136,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation type="unfinished">Punguza mwangaza wa kikaratasi wakati wa Mwanda cha giza</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="97"/>
<source>System effects</source>
<translation>Athari la mufumo</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="117"/>
<source>Accent color</source>

@ -123,11 +123,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -90,11 +90,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>Làm mờ hình nền khi ở chế độ tối</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>Hiệu ứng hệ thống</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

@ -123,11 +123,6 @@
<source>Dim the wallpaper in dark theme</source>
<translation>在深色模式下调暗壁纸</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="98"/>
<source>System effects</source>
<translation>系统特效</translation>
</message>
<message>
<location filename="../src/qml/Appearance/Main.qml" line="121"/>
<source>Minimize animation</source>

Loading…
Cancel
Save