add animation to 'rect' date style

This commit is contained in:
darksignal7
2025-10-08 21:16:14 +03:00
parent 19230db8b7
commit 70f3a25798
2 changed files with 11 additions and 7 deletions
@@ -6,15 +6,16 @@ import qs.modules.common.widgets
import QtQuick
Rectangle {
id: rect
readonly property string dialStyle: Config.options.background.clock.cookie.dialNumberStyle
property real animIndex: 0
opacity: animIndex
opacity: animIndex
width: 45
height: 30
x: dialStyle === "numbers" ? 155 : 150
y: dialStyle === "numbers" ? 155 : 100
width: 45 * animIndex
height: 30 * animIndex
x: root.dialStyle === "numbers" ? -40 : -10
y: root.dialStyle === "numbers" ? 55 : 0
Behavior on x {
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)