mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
MaskLayer: Rename Homescreen Scale Property
This commit is contained in:
parent
92748d80d3
commit
d2ba42b503
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue