1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

Animation improvements, fix SysTray

This commit is contained in:
bbedward
2025-07-14 13:50:00 -04:00
parent d5d45b11c3
commit fff7dace3b
9 changed files with 255 additions and 116 deletions

View File

@@ -41,16 +41,50 @@ PanelWindow {
radius: Theme.cornerRadiusLarge
border.width: 0 // Remove border completely
// TopBar dropdown animation - slide down from bar
transform: [
Translate {
id: swipeTransform
x: 0
y: root.showNotificationPopup ? 0 : -30
Behavior on y {
NumberAnimation {
duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing
}
}
},
Scale {
id: scaleTransform
origin.x: parent.width
origin.y: 0
xScale: root.showNotificationPopup ? 1.0 : 0.95
yScale: root.showNotificationPopup ? 1.0 : 0.8
Behavior on xScale {
NumberAnimation {
duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing
}
}
Behavior on yScale {
NumberAnimation {
duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing
}
}
}
]
opacity: root.showNotificationPopup ? 1.0 : 0.0
// Transform for swipe animations
transform: Translate {
id: swipeTransform
x: 0
}
Behavior on opacity {
NumberAnimation { duration: 200; easing.type: Easing.OutQuad }
NumberAnimation {
duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing
}
}
// Drag area for swipe gestures