MaskLayer: Rename Homescreen Scale Property

This commit is contained in:
Micah Stanley 2025-06-29 16:06:03 +00:00 committed by Devin Lin
parent 92748d80d3
commit d2ba42b503

View file

@ -128,7 +128,7 @@ Item {
// animations // animations
opacity: 0 opacity: 0
property real zoomScale: 1 property real scaleAmount: 1
readonly property real zoomScaleOut: 0.8 readonly property real zoomScaleOut: 0.8
@ -150,7 +150,7 @@ Item {
function zoomOutImmediately() { function zoomOutImmediately() {
scaleAnim.stop(); scaleAnim.stop();
opacityAnim.stop(); opacityAnim.stop();
zoomScale = zoomScaleOut; scaleAmount = zoomScaleOut;
opacity = 0; opacity = 0;
} }
@ -160,7 +160,7 @@ Item {
running: false running: false
} }
NumberAnimation on zoomScale { NumberAnimation on scaleAmount {
id: scaleAnim id: scaleAnim
duration: 600 duration: 600
running: false running: false
@ -179,8 +179,8 @@ Item {
transform: Scale { transform: Scale {
origin.x: itemContainer.width / 2; origin.x: itemContainer.width / 2;
origin.y: itemContainer.height / 2; origin.y: itemContainer.height / 2;
xScale: itemContainer.zoomScale xScale: itemContainer.scaleAmount
yScale: itemContainer.zoomScale yScale: itemContainer.scaleAmount
} }
} }