add attwm support
This commit is contained in:
+15
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user