71 lines
2.0 KiB
QML
Raw Normal View History

2026-01-19 18:57:19 +01:00
pragma ComponentBehavior: Bound
2026-01-14 23:18:18 +01:00
import Quickshell
import QtQuick
2026-02-06 14:05:29 +01:00
import QtQuick.Layouts
import qs
import qs.settings
2026-01-14 23:18:18 +01:00
Variants {
model: Quickshell.screens
delegate: PanelWindow {
id: root
2026-01-18 18:26:49 +01:00
required property var modelData
2026-01-18 15:54:25 +01:00
implicitHeight: Settings.config.barHeight
aboveWindows: true
screen: modelData
2026-01-18 18:26:49 +01:00
margins {
2026-01-26 18:20:36 +01:00
top: Settings.config.floating ? Settings.config.margins : 0
left: Settings.config.floating ? Settings.config.margins : 0
right: Settings.config.floating ? Settings.config.margins : 0
2026-01-18 18:26:49 +01:00
}
anchors {
top: true
left: true
right: true
}
2026-01-18 18:26:49 +01:00
color: "transparent"
Rectangle {
id: container
implicitHeight: Settings.config.barHeight
anchors.fill: parent
2026-01-26 18:20:36 +01:00
color: Qt.rgba(Colors.surface.r, Colors.surface.g, Colors.surface.b, Settings.config.translucency)
radius: Settings.config.floating ? Settings.config.barHeight / 2 : 0
2026-01-18 18:26:49 +01:00
2026-02-06 14:05:29 +01:00
RowLayout {
2026-01-18 18:26:49 +01:00
id: leftStuff
2026-02-06 14:05:29 +01:00
anchors.margins: Settings.config.barHeight / 4
spacing: 10
2026-01-18 18:26:49 +01:00
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
Workspaces {
property var screen: root.modelData
}
Title {}
Mpris {}
}
2026-01-14 23:18:18 +01:00
2026-01-18 18:26:49 +01:00
Row {
id: centerStuff
anchors.centerIn: parent
Clock {}
}
2026-01-14 23:18:18 +01:00
2026-02-06 14:05:29 +01:00
RowLayout {
2026-01-18 18:26:49 +01:00
id: rightStuff
2026-02-06 14:05:29 +01:00
anchors.margins: Settings.config.barHeight / 4
2026-01-18 18:26:49 +01:00
spacing: 10
2026-02-06 14:13:29 +01:00
clip: true
2026-01-18 18:26:49 +01:00
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Network {}
2026-01-18 18:26:49 +01:00
Volume {}
Battery {}
SysTray {}
SettingsIcon {}
2026-01-18 18:26:49 +01:00
}
2026-01-14 23:18:18 +01:00
}
}
}