70 lines
2.1 KiB
QML
Raw Permalink 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-02-06 14:05:29 +01:00
RowLayout {
2026-01-18 18:26:49 +01:00
id: leftStuff
spacing: 10
2026-01-18 18:26:49 +01:00
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
Workspaces {
2026-02-15 13:50:23 +01:00
Layout.leftMargin: Settings.config.floating ? 5 : 20
2026-01-18 18:26:49 +01:00
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
spacing: 10
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
SysTray {}
2026-02-14 12:44:21 +01:00
StatusIcons {
2026-02-15 13:50:23 +01:00
margin: Layout.rightMargin
barWindow: root
barContainer: container
Layout.rightMargin: Settings.config.floating ? 5 : 20
2026-02-14 12:44:21 +01:00
}
2026-01-18 18:26:49 +01:00
}
2026-01-14 23:18:18 +01:00
}
}
}