add attwm support

This commit is contained in:
2026-07-26 13:48:27 +02:00
parent 9058dd7926
commit 202879eb0e
10 changed files with 404 additions and 44 deletions
+15 -5
View File
@@ -35,7 +35,7 @@ PanelWindow {
// depend on which row anything sits in, so this can't bind-loop.
readonly property real neededWidth:
(Theme.gap + 2) * 2 // outer margins
+ workspaces.implicitWidth
+ leftRow.implicitWidth
+ Theme.gap * 4 // breathing room between clusters
+ metricsRow.implicitWidth
+ Theme.gap
@@ -50,13 +50,23 @@ PanelWindow {
color: Theme.barColor
}
// row 1 left: workspaces
Workspaces {
id: workspaces
// row 1 left: workspaces, plus the layout symbol under attwm (hidden
// otherwise, and a hidden item takes no space in a RowLayout)
RowLayout {
id: leftRow
anchors.left: parent.left
anchors.leftMargin: Theme.gap + 2
y: (Theme.barHeight - height) / 2
screen: panel.modelData
spacing: Theme.gap
Workspaces {
screen: panel.modelData
Layout.alignment: Qt.AlignVCenter
}
LayoutSymbol {
screen: panel.modelData
Layout.alignment: Qt.AlignVCenter
}
}
// row 1 right: clock, tray