mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
bound the strip at top and bottom
except in the lockscreen it will slide away
This commit is contained in:
parent
06e23491fb
commit
c096ffb366
2 changed files with 7 additions and 4 deletions
|
|
@ -18,11 +18,11 @@ Item {
|
||||||
opacity: (delegateItem.drag.target != null) ? 0.4 : 0
|
opacity: (delegateItem.drag.target != null) ? 0.4 : 0
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: units.longDuration
|
duration: units.longDuration
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//animate index change
|
//animate index change
|
||||||
onIdxChanged: {
|
onIdxChanged: {
|
||||||
if (delegateItem.drag.target != null) {
|
if (delegateItem.drag.target != null) {
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,10 @@ Item {
|
||||||
SatelliteStripe {
|
SatelliteStripe {
|
||||||
id: stripe
|
id: stripe
|
||||||
z: 99
|
z: 99
|
||||||
y: Math.max(applicationsView.contentY + parent.height, parent.height - height)
|
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition
|
||||||
|
|
||||||
|
y: Math.max(viewPos,
|
||||||
|
Math.min(parent.height, viewPos + root.height) - height + Math.max(0, -(parent.height - height + applicationsView.contentY)))
|
||||||
|
|
||||||
PlasmaCore.Svg {
|
PlasmaCore.Svg {
|
||||||
id: stripeIcons
|
id: stripeIcons
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue