quickshell: pull-down calendar animation from bar edge
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5ddaacf8ff
commit
beedc893ea
1 changed files with 12 additions and 15 deletions
|
|
@ -529,7 +529,7 @@ in
|
|||
|
||||
Timer {
|
||||
id: calCloseTimer
|
||||
interval: 280
|
||||
interval: 240
|
||||
onTriggered: calPopup.visible = false
|
||||
}
|
||||
}
|
||||
|
|
@ -856,33 +856,30 @@ in
|
|||
Rectangle {
|
||||
id: calContent
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
y: 1
|
||||
width: calPopup.open ? calPopup.fullWidth : 40
|
||||
height: calPopup.open ? calPopup.fullHeight : 4
|
||||
radius: calPopup.open ? 8 : 2
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 1
|
||||
width: calPopup.open ? calPopup.fullWidth : calPopup.fullWidth
|
||||
height: calPopup.open ? calPopup.fullHeight : 0
|
||||
color: "#${c.base00}"
|
||||
border.color: "#${c.base03}"
|
||||
border.color: calPopup.open ? "#${c.base03}" : "transparent"
|
||||
border.width: 1
|
||||
radius: 8
|
||||
clip: true
|
||||
|
||||
Behavior on width {
|
||||
NumberAnimation { duration: 250; easing.type: Easing.OutCubic }
|
||||
}
|
||||
Behavior on height {
|
||||
NumberAnimation { duration: 250; easing.type: Easing.OutCubic }
|
||||
}
|
||||
Behavior on radius {
|
||||
NumberAnimation { duration: 250; easing.type: Easing.OutCubic }
|
||||
NumberAnimation { duration: 220; easing.type: Easing.OutCubic }
|
||||
}
|
||||
|
||||
Column {
|
||||
id: calCol
|
||||
anchors.centerIn: parent
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 12
|
||||
spacing: 8
|
||||
opacity: calPopup.open ? 1.0 : 0.0
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation { duration: 180; easing.type: Easing.OutCubic }
|
||||
NumberAnimation { duration: 150; easing.type: Easing.OutCubic }
|
||||
}
|
||||
|
||||
// Date header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue