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 } } } }