idek atp
This commit is contained in:
43
Launcher.qml
43
Launcher.qml
@@ -13,9 +13,7 @@ PanelWindow {
|
||||
id: launcher
|
||||
|
||||
function close() {
|
||||
visible = false
|
||||
list.visible = false
|
||||
searchInput.text = ""
|
||||
exitAnim.start();
|
||||
}
|
||||
function open() {
|
||||
visible = true
|
||||
@@ -358,6 +356,45 @@ PanelWindow {
|
||||
width: 24
|
||||
height: 24
|
||||
}
|
||||
|
||||
property var progress
|
||||
}
|
||||
transform: Translate {
|
||||
NumberAnimation on x {
|
||||
running: launcher.visible
|
||||
duration: 200
|
||||
from: launcher.implicitWidth/6
|
||||
to: 0
|
||||
easing.type: Easing.OutQuart
|
||||
}
|
||||
NumberAnimation on x {
|
||||
running: exitAnim.running
|
||||
duration: 200
|
||||
from: 0
|
||||
to: launcher.implicitWidth/6
|
||||
easing.type: Easing.InCubic
|
||||
}
|
||||
}
|
||||
NumberAnimation on opacity {
|
||||
running: launcher.visible
|
||||
from: 0
|
||||
to: 1
|
||||
duration: 150
|
||||
}
|
||||
SequentialAnimation on opacity {
|
||||
id: exitAnim
|
||||
running: false
|
||||
PauseAnimation { duration: 50 }
|
||||
NumberAnimation {
|
||||
from: 1
|
||||
to: 0
|
||||
duration: 150
|
||||
}
|
||||
onFinished: {
|
||||
launcher.visible = false
|
||||
list.visible = false
|
||||
searchInput.text = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user