bar: don't animate circprogs (#1570)

This commit is contained in:
end-4
2025-07-23 08:57:33 +07:00
parent 3b5a674409
commit 3d5ed9401c
4 changed files with 5 additions and 0 deletions
@@ -39,6 +39,7 @@ Item {
} }
CircularProgress { CircularProgress {
enableAnimation: false
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
lineWidth: 2 lineWidth: 2
value: percentage value: percentage
@@ -56,6 +56,7 @@ Item {
size: 26 size: 26
secondaryColor: Appearance.colors.colSecondaryContainer secondaryColor: Appearance.colors.colSecondaryContainer
primaryColor: Appearance.m3colors.m3onSecondaryContainer primaryColor: Appearance.m3colors.m3onSecondaryContainer
enableAnimation: false
MaterialSymbol { MaterialSymbol {
anchors.centerIn: parent anchors.centerIn: parent
@@ -24,6 +24,7 @@ Item {
size: 26 size: 26
secondaryColor: Appearance.colors.colSecondaryContainer secondaryColor: Appearance.colors.colSecondaryContainer
primaryColor: Appearance.m3colors.m3onSecondaryContainer primaryColor: Appearance.m3colors.m3onSecondaryContainer
enableAnimation: false
MaterialSymbol { MaterialSymbol {
anchors.centerIn: parent anchors.centerIn: parent
@@ -18,6 +18,7 @@ Item {
property real gapAngle: Math.PI / 9 property real gapAngle: Math.PI / 9
property bool fill: false property bool fill: false
property int fillOverflow: 2 property int fillOverflow: 2
property bool enableAnimation: true
property int animationDuration: 1000 property int animationDuration: 1000
property var easingType: Easing.OutCubic property var easingType: Easing.OutCubic
@@ -83,6 +84,7 @@ Item {
} }
Behavior on degree { Behavior on degree {
enabled: root.enableAnimation
NumberAnimation { NumberAnimation {
duration: root.animationDuration duration: root.animationDuration
easing.type: root.easingType easing.type: root.easingType