diff --git a/.config/quickshell/ii/modules/background/CookieClock.qml b/.config/quickshell/ii/modules/background/CookieClock.qml index 4a489921c..cf31f21bf 100644 --- a/.config/quickshell/ii/modules/background/CookieClock.qml +++ b/.config/quickshell/ii/modules/background/CookieClock.qml @@ -94,7 +94,7 @@ Item { amplitude: implicitSize / 70 sides: Config.options.background.clock.clockSides color: root.colBackground - waveAnimation: Config.options.background.clock.cookie.waveAnimation + constantlyRotate: Config.options.background.clock.cookie.constantlyRotate } // Hour dots dial style diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index d7cb2f895..a27f44565 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -139,7 +139,7 @@ Singleton { property bool timeIndicators: true property bool centerGlow: true property bool dateInClock: true - property bool waveAnimation: true + property bool constantlyRotate: false } } diff --git a/.config/quickshell/ii/modules/common/widgets/MaterialCookie.qml b/.config/quickshell/ii/modules/common/widgets/MaterialCookie.qml index 15fb66d44..268694862 100644 --- a/.config/quickshell/ii/modules/common/widgets/MaterialCookie.qml +++ b/.config/quickshell/ii/modules/common/widgets/MaterialCookie.qml @@ -14,15 +14,14 @@ Item { property int renderPoints: 360 property color color: "#605790" property alias strokeWidth: shapePath.strokeWidth - property bool waveAnimation: false - + property bool constantlyRotate: false implicitWidth: implicitSize implicitHeight: implicitSize property real waveTime: 0 Loader{ - active: waveAnimation + active: constantlyRotate sourceComponent: Timer{ interval: 16 // Does it effect performance, probably, is it noticeable, not really running: true; repeat: true @@ -60,7 +59,7 @@ Item { var radius = root.implicitSize / 2 - root.amplitude for (var i = 0; i <= steps; i++) { var angle = (i / steps) * 2 * Math.PI - var wave = waveAnimation ? Math.sin(angle * root.animatedSides + Math.PI/2 - root.waveTime) * root.amplitude : Math.sin(angle * root.animatedSides + Math.PI/2) * root.amplitude + var wave = constantlyRotate ? Math.sin(angle * root.animatedSides + Math.PI/2 - root.waveTime) * root.amplitude : Math.sin(angle * root.animatedSides + Math.PI/2) * root.amplitude var x = Math.cos(angle) * (radius + wave) + cx var y = Math.sin(angle) * (radius + wave) + cy points.push(Qt.point(x, y)) diff --git a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml index 63aadfd04..2ae96628c 100644 --- a/.config/quickshell/ii/modules/settings/InterfaceConfig.qml +++ b/.config/quickshell/ii/modules/settings/InterfaceConfig.qml @@ -296,13 +296,13 @@ ContentPage { enabled: Config.options.background.clock.style === "cookie" visible: Config.options.background.clock.style === "cookie" buttonIcon: "waves" - text: Translation.tr("Wave animation") - checked: Config.options.background.clock.cookie.waveAnimation + text: Translation.tr("Constantly rotate") + checked: Config.options.background.clock.cookie.constantlyRotate onCheckedChanged: { - Config.options.background.clock.cookie.waveAnimation = checked; + Config.options.background.clock.cookie.constantlyRotate = checked; } StyledToolTip { - text: "It may effect performance" + text: "Makes the clock always rotate. This is extremely expensive (expect 50% usage on Intel UHD Graphics) and thus impractical." } }