Files
Aurora/config/aurora/modules/BarTop.qml
2026-03-29 13:16:40 -05:00

75 lines
1.3 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 {
spacing: 0
id: root
required property color color
WrapperMouseArea {
id: topRectArea
Rectangle {
id: topRect
color: root.color
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
//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
VFlyoutDown {
id: midFO
radius: root.radius
Layout.alignment: Qt.AlignHCenter
color: root.color
visible: true
item: mid
onEntered: visible = false
RowLayout {
id: mid
Clock {
id: clock
}
}
}
}