This commit is contained in:
2026-03-15 20:08:48 -05:00
parent 9871af127a
commit 6ea4782a80
15 changed files with 610 additions and 491 deletions

View File

@@ -8,61 +8,66 @@ import Quickshell.Widgets
import Quickshell.Wayland
import Quickshell.Hyprland
VFlyout {
ColumnLayout {
spacing: -1
id: root
WrapperMouseArea {
id: topRectArea
Rectangle {
id: topRect
color: Pywal.special.background
anchors.fill: parent
}
implicitHeight: 10
implicitWidth: parent.width
hoverEnabled: true
onEntered: {
root.showDash = true
}
}
property bool showDash: false
required property real radius
property real cornerY: topRectArea.height - 1
//property real reserve: midFO.visible ? root.height : topRectArea.height
property real reserve: topRectArea.height
property QsWindow window
property Item topRectArea: topRectArea
property Item midFO: midFO
VFlyout {
id: midFO
radius: root.radius
Layout.alignment: Qt.AlignHCenter
color: Pywal.special.background
visible: set
property bool set: true
property QsWindow window
visible: true
item: mid
onExited: visible = false
onEntered: visible = false
RowLayout {
id: mid
Notifications {
id: notifications
window: midFO.window
}
Battery {
window: midFO.window
popupOffset: x + midFO.x
}
Tray {
window: midFO.window
popupOffset: x + midFO.x
}
Clock {
id: clock
}
IdleInhibitor {
id: idleInhibitor
}
Bluetooth {
window: midFO.window
popupOffset: x + midFO.x
}
Volume {
window: midFO.window
popupOffset: x + midFO.x
}
Power {
id: power
window: midFO.window
popupOffset: x + midFO.x
}
}
}
}