non important commit
This commit is contained in:
parent
069a5df2b9
commit
25c21ca64a
4 changed files with 72 additions and 11 deletions
|
|
@ -0,0 +1,39 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
|
||||
PanelWindow {
|
||||
id: calendarPopup
|
||||
|
||||
required property bool expanderOpen
|
||||
required property color bgColor
|
||||
required property color recColor
|
||||
required property int recRadius
|
||||
required property int barWidth
|
||||
|
||||
anchors.left: true
|
||||
anchors.bottom: true
|
||||
implicitWidth: (expanderOpen || popupAnim.running) ? 160 : 0
|
||||
implicitHeight: (expanderOpen || popupAnim.running) ? 1400 : 0
|
||||
color: "transparent"
|
||||
|
||||
Rectangle {
|
||||
id: popupRectangle
|
||||
|
||||
y: calendarPopup.height - height
|
||||
x: calendarPopup.expanderOpen ? 0 : -(width + calendarPopup.barWidth)
|
||||
width: 160
|
||||
height: 140
|
||||
color: calendarPopup.bgColor
|
||||
|
||||
Behavior on x {
|
||||
NumberAnimation {
|
||||
id: popupAnim
|
||||
|
||||
duration: 400
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue