2026-03-08 12:13:35 +01:00
|
|
|
import Quickshell
|
|
|
|
|
import QtQuick
|
2026-03-08 13:44:57 +01:00
|
|
|
import QtQuick.Layouts
|
2026-03-08 12:13:35 +01:00
|
|
|
import qs.settings
|
|
|
|
|
import qs
|
|
|
|
|
|
2026-03-08 13:44:57 +01:00
|
|
|
Variants {
|
|
|
|
|
model: Quickshell.screens
|
|
|
|
|
delegate: PanelWindow {
|
|
|
|
|
id: root
|
2026-03-09 10:02:44 +01:00
|
|
|
required property ShellScreen modelData
|
|
|
|
|
margins {
|
|
|
|
|
top: Settings.config.floating ? Settings.config.margins : 0
|
|
|
|
|
left: Settings.config.floating ? Settings.config.margins : 0
|
|
|
|
|
right: Settings.config.floating ? Settings.config.margins : 0
|
|
|
|
|
}
|
|
|
|
|
screen: modelData
|
2026-03-08 13:44:57 +01:00
|
|
|
anchors {
|
|
|
|
|
top: true
|
|
|
|
|
left: true
|
|
|
|
|
right: true
|
|
|
|
|
}
|
|
|
|
|
implicitHeight: Settings.config.barHeight
|
|
|
|
|
color: "transparent"
|
|
|
|
|
Rectangle {
|
|
|
|
|
id: bar
|
2026-03-09 10:02:44 +01:00
|
|
|
radius: Settings.config.floating ? Settings.config.rounding * 2 : 0
|
2026-03-08 13:44:57 +01:00
|
|
|
anchors.fill: parent
|
|
|
|
|
color: ThemeLoader.colors.base00
|
|
|
|
|
RowLayout {
|
|
|
|
|
id: left
|
2026-03-09 10:02:44 +01:00
|
|
|
anchors.leftMargin: Settings.config.floating ? Settings.config.barHeight / 2 - 10: 10
|
2026-03-08 13:44:57 +01:00
|
|
|
anchors {
|
|
|
|
|
left: parent.left
|
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
|
}
|
2026-03-09 10:02:44 +01:00
|
|
|
Ws {
|
|
|
|
|
barScreen: root.modelData
|
|
|
|
|
}
|
|
|
|
|
MPris {}
|
2026-03-08 13:44:57 +01:00
|
|
|
}
|
|
|
|
|
RowLayout {
|
|
|
|
|
id: center
|
|
|
|
|
anchors {
|
|
|
|
|
centerIn: parent
|
|
|
|
|
}
|
2026-03-09 10:02:44 +01:00
|
|
|
Title {}
|
2026-03-08 13:44:57 +01:00
|
|
|
}
|
|
|
|
|
RowLayout {
|
|
|
|
|
id: right
|
|
|
|
|
anchors {
|
|
|
|
|
right: parent.right
|
|
|
|
|
verticalCenter: parent.verticalCenter
|
2026-03-09 10:02:44 +01:00
|
|
|
rightMargin: Settings.config.floating ? Settings.config.barHeight / 2 - 10 : 10
|
2026-03-08 13:44:57 +01:00
|
|
|
}
|
2026-03-09 10:02:44 +01:00
|
|
|
Clock {}
|
|
|
|
|
StatusIcons {}
|
2026-03-09 19:04:29 +01:00
|
|
|
Tray {}
|
2026-03-08 13:44:57 +01:00
|
|
|
}
|
|
|
|
|
}
|
2026-03-08 12:13:35 +01:00
|
|
|
}
|
|
|
|
|
}
|