58 lines
1.1 KiB
QML
58 lines
1.1 KiB
QML
import Quickshell // for PanelWindow
|
|
import QtQuick // for Text
|
|
import QtQuick.Shapes
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import Quickshell.Io
|
|
import Quickshell.Widgets
|
|
import Quickshell.Wayland
|
|
import Quickshell.Hyprland
|
|
|
|
|
|
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
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|