non important commit

This commit is contained in:
benstrb 2026-03-13 17:56:47 +01:00
parent 069a5df2b9
commit 25c21ca64a
4 changed files with 72 additions and 11 deletions

View file

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

View file

@ -15,12 +15,12 @@ PanelWindow {
anchors.left: true
anchors.bottom: true
implicitWidth: (expanderOpen || powerAnim.running) ? 140 : 0
implicitHeight: (expanderOpen || powerAnim.running) ? 100 : 0
implicitWidth: (expanderOpen || popupAnim.running) ? 140 : 0
implicitHeight: (expanderOpen || popupAnim.running) ? 100 : 0
color: "transparent"
Rectangle {
id: powerRectangle
id: popupRectangle
y: parent.height - height
x: powerPopup.expanderOpen ? 0 : -(width + powerPopup.barWidth)
@ -30,7 +30,7 @@ PanelWindow {
Behavior on x {
NumberAnimation {
id: powerAnim
id: popupAnim
duration: 400
easing.type: Easing.OutCubic
@ -38,7 +38,7 @@ PanelWindow {
}
Row {
anchors.centerIn: powerRectangle
anchors.centerIn: popupRectangle
spacing: 10
Rectangle {

View file

@ -18,7 +18,8 @@ PanelWindow {
required property int myMargin
required property int edgeMargin
required property bool expanderOpen
required property bool powerExpanderOpen
required property bool calendarExpanderOpen
anchors.top: true
anchors.left: true
@ -98,6 +99,13 @@ PanelWindow {
implicitWidth: sideBar.recLength
radius: sideBar.recRadius
color: sideBar.recColor
property real hello: time.y
Button {
anchors.fill: parent
opacity: 0
onClicked: sideBar.calendarExpanderOpen = !sideBar.calendarExpanderOpen
}
Text {
anchors.centerIn: parent
@ -122,7 +130,7 @@ PanelWindow {
Button {
anchors.fill: parent
opacity: 0
onClicked: sideBar.expanderOpen = !sideBar.expanderOpen
onClicked: sideBar.powerExpanderOpen = !sideBar.powerExpanderOpen
}
Image {

View file

@ -28,7 +28,8 @@ ShellRoot {
id: delegate
required property var modelData
property bool expanderOpen: false
property bool powerExpanderOpen: false
property bool calendarExpanderOpen: false
SideBar {
clock: clock
@ -42,13 +43,26 @@ ShellRoot {
recLength: root.recLength
myMargin: root.myMargin
edgeMargin: root.edgeMargin
expanderOpen: delegate.expanderOpen
onExpanderOpenChanged: delegate.expanderOpen = expanderOpen
powerExpanderOpen: delegate.powerExpanderOpen
onPowerExpanderOpenChanged: delegate.powerExpanderOpen = powerExpanderOpen
calendarExpanderOpen: delegate.calendarExpanderOpen
onCalendarExpanderOpenChanged: delegate.calendarExpanderOpen = calendarExpanderOpen
}
PowerPopup {
screen: delegate.modelData
expanderOpen: delegate.expanderOpen
expanderOpen: delegate.powerExpanderOpen
bgColor: root.bgColor
recColor: root.recColor
recRadius: root.recRadius
barWidth: root.barWidth
}
CalendarPopup {
screen: delegate.modelData
expanderOpen: delegate.calendarExpanderOpen
bgColor: root.bgColor
recColor: root.recColor
recRadius: root.recRadius