usable
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user