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 {
|
Timer {
|
||||||
id: calCloseTimer
|
id: calCloseTimer
|
||||||
interval: 280
|
interval: 240
|
||||||
onTriggered: calPopup.visible = false
|
onTriggered: calPopup.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -856,33 +856,30 @@ in
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: calContent
|
id: calContent
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
y: 1
|
anchors.top: parent.top
|
||||||
width: calPopup.open ? calPopup.fullWidth : 40
|
anchors.topMargin: 1
|
||||||
height: calPopup.open ? calPopup.fullHeight : 4
|
width: calPopup.open ? calPopup.fullWidth : calPopup.fullWidth
|
||||||
radius: calPopup.open ? 8 : 2
|
height: calPopup.open ? calPopup.fullHeight : 0
|
||||||
color: "#${c.base00}"
|
color: "#${c.base00}"
|
||||||
border.color: "#${c.base03}"
|
border.color: calPopup.open ? "#${c.base03}" : "transparent"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
radius: 8
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
Behavior on width {
|
|
||||||
NumberAnimation { duration: 250; easing.type: Easing.OutCubic }
|
|
||||||
}
|
|
||||||
Behavior on height {
|
Behavior on height {
|
||||||
NumberAnimation { duration: 250; easing.type: Easing.OutCubic }
|
NumberAnimation { duration: 220; easing.type: Easing.OutCubic }
|
||||||
}
|
|
||||||
Behavior on radius {
|
|
||||||
NumberAnimation { duration: 250; easing.type: Easing.OutCubic }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: calCol
|
id: calCol
|
||||||
anchors.centerIn: parent
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: 12
|
||||||
spacing: 8
|
spacing: 8
|
||||||
opacity: calPopup.open ? 1.0 : 0.0
|
opacity: calPopup.open ? 1.0 : 0.0
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation { duration: 180; easing.type: Easing.OutCubic }
|
NumberAnimation { duration: 150; easing.type: Easing.OutCubic }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Date header
|
// Date header
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue