mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
keeping parent's cusorshape and Drawer2Type's close-animation
This commit is contained in:
@@ -183,6 +183,12 @@ Item {
|
|||||||
properties: "y"
|
properties: "y"
|
||||||
duration: 200
|
duration: 200
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onRunningChanged: {
|
||||||
|
if (!running) {
|
||||||
|
visibledMouseArea(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
Transition {
|
Transition {
|
||||||
@@ -211,8 +217,7 @@ Item {
|
|||||||
}
|
}
|
||||||
draw2Background.color = "#90000000"
|
draw2Background.color = "#90000000"
|
||||||
|
|
||||||
fullMouseArea.visible = true
|
visibledMouseArea(true)
|
||||||
dragArea.visible = true
|
|
||||||
|
|
||||||
root.y = 0
|
root.y = 0
|
||||||
root.state = "opened"
|
root.state = "opened"
|
||||||
@@ -231,9 +236,6 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
fullMouseArea.visible = false
|
|
||||||
dragArea.visible = false
|
|
||||||
|
|
||||||
draw2Background.color = "transparent"
|
draw2Background.color = "transparent"
|
||||||
root.state = "closed"
|
root.state = "closed"
|
||||||
}
|
}
|
||||||
@@ -250,4 +252,9 @@ Item {
|
|||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function visibledMouseArea(visbile) {
|
||||||
|
fullMouseArea.visible = visbile
|
||||||
|
dragArea.visible = visbile
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user