usable
This commit is contained in:
@@ -9,11 +9,49 @@ import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
|
||||
|
||||
Rectangle {
|
||||
property real reserve: height
|
||||
id: botRect
|
||||
ColumnLayout {
|
||||
id: root
|
||||
|
||||
property real reserve: botRectArea.height
|
||||
|
||||
required property real radius
|
||||
required property color color
|
||||
|
||||
property real cornerY: y + botRectArea.y
|
||||
|
||||
required property list<string> hyprcmds
|
||||
|
||||
property Item midFO: midFO
|
||||
|
||||
y: parent.height - height
|
||||
color: Pywal.special.background
|
||||
implicitHeight: 10
|
||||
|
||||
implicitWidth: parent.width
|
||||
spacing: -10
|
||||
|
||||
Launcher {
|
||||
id: midFO
|
||||
radius: root.radius
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
hyprcmds: root.hyprcmds
|
||||
color: root.color
|
||||
}
|
||||
|
||||
WrapperMouseArea {
|
||||
id: botRectArea
|
||||
Rectangle {
|
||||
id: botRect
|
||||
color: root.color
|
||||
anchors.fill: parent
|
||||
}
|
||||
implicitHeight: 10
|
||||
implicitWidth: parent.width
|
||||
|
||||
hoverEnabled: true
|
||||
onEntered: {
|
||||
midFO.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user