pragma ComponentBehavior: Bound import qs import qs.services import qs.modules.common import qs.modules.common.widgets import qs.modules.common.functions import QtQuick Item { id: root anchors.fill: parent required property int clockMinute property real handWidth: 16 property string style: "medium" property color color: Appearance.colors.colSecondary z: root.style === "thin" ? 1 : 3 rotation: -90 + (360 / 60) * root.clockMinute opacity: root.style === "hide" ? 0.0 : 1.0 Behavior on rotation { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } Behavior on opacity { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } Rectangle { anchors.verticalCenter: parent.verticalCenter x: { let position = parent.width / 2 - root.handWidth / 2; if (root.style === "classic") position -= 15; return position; } width: minuteHandLength height: root.handWidth radius: root.style === "classic" ? 2 : root.handWidth / 2 color: root.color Behavior on height { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } Behavior on x { animation: Appearance.animation.elementResize.numberAnimation.createObject(this) } } }