Remove slide animation from mcsr thin macro

This commit is contained in:
2026-09-08 01:14:21 -07:00
parent 209bcdbd66
commit 69cc62cb55
5 changed files with 16 additions and 35 deletions
+6 -27
View File
@@ -9,33 +9,10 @@ import QtQuick.Effects
Item {
id: thin
property bool open: false
property real pos: 0
PropertyAnimation on pos {
id: entry
running: false
to: 1
duration: 400
easing.type: Easing.OutQuint
}
PropertyAnimation on pos {
id: exit
running: false
to: 0
duration: 350
easing.type: Easing.OutQuint
onFinished: thin.open = false
}
IpcHandler {
target: "thin"
function open() {
thin.open = true
exit.stop()
entry.start()
}
function close() {
entry.stop()
exit.start()
}
function open() { thin.open = true }
function close() { thin.open = false }
}
PanelWindow {
visible: thin.open
@@ -47,6 +24,7 @@ Item {
implicitWidth: 1080
color: "transparent"
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.namespace: 'mcsr-thin'
RectangularShadow {
anchors.fill: pie_wrapper
@@ -60,7 +38,7 @@ Item {
left: parent.left
top: parent.top
margins: 12
leftMargin: 1080 * (1 - thin.pos) + 12
leftMargin: 12
}
width: 210
height: 210
@@ -96,6 +74,7 @@ Item {
implicitHeight: 120
color: "transparent"
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.namespace: 'mcsr-thin'
RectangularShadow {
anchors.fill: e_wrapper
radius: e_wrapper.radius
@@ -108,7 +87,7 @@ Item {
right: parent.right
bottom: parent.bottom
margins: 12
rightMargin: 1080 * (1 - thin.pos) + 12
rightMargin: 12
}
width: 240
height: 48