reworked Workspace.qml to support specialworkspace, fixed launcher opening on two monitors, added slider animation back as an option
This commit is contained in:
@@ -14,17 +14,33 @@ Rectangle {
|
||||
anchors.top: isTop ? parent.top : undefined
|
||||
anchors.bottom: isTop ? undefined : parent.bottom
|
||||
|
||||
transform: Scale {
|
||||
yScale: popupOpen ? 1 : 0
|
||||
origin.y: isTop ? 0 : card.height
|
||||
Behavior on yScale {
|
||||
NumberAnimation {
|
||||
duration: Cfg.Config.popupAnimDuration
|
||||
easing.type: Easing.OutBack
|
||||
transform: [
|
||||
Scale {
|
||||
yScale: Cfg.Config.popupAnimType === "bubbleslide"
|
||||
? (popupOpen ? 1 : 0)
|
||||
: 1
|
||||
origin.y: isTop ? 0 : card.height
|
||||
Behavior on yScale {
|
||||
NumberAnimation {
|
||||
duration: Cfg.Config.popupAnimDuration
|
||||
easing.type: Easing.OutBack
|
||||
}
|
||||
enabled: animEnabled
|
||||
}
|
||||
},
|
||||
Translate {
|
||||
y: Cfg.Config.popupAnimType === "slide"
|
||||
? (popupOpen ? 0 : (isTop ? -card.height : card.height))
|
||||
: 0
|
||||
Behavior on y {
|
||||
NumberAnimation {
|
||||
duration: Cfg.Config.popupAnimDuration
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
enabled: animEnabled
|
||||
}
|
||||
enabled: animEnabled
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
opacity: popupOpen ? 1.0 : 0.0
|
||||
Behavior on opacity { NumberAnimation { duration: 200 } }
|
||||
|
||||
Reference in New Issue
Block a user