hefty: bar: allow vertical

This commit is contained in:
end-4
2026-02-03 22:43:09 +01:00
parent 58184f5be8
commit 5bb1aa06af
7 changed files with 177 additions and 84 deletions
@@ -5,7 +5,8 @@ import qs.modules.common as C
IIBar.Workspaces {
id: root
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
implicitWidth: root.vertical ? C.Appearance.sizes.verticalBarWidth : (root.workspaceButtonWidth * root.workspacesShown - 2)
implicitHeight: root.vertical ? (root.workspaceButtonWidth * root.workspacesShown - 2) : C.Appearance.sizes.barHeight
vertical: C.Config.options.bar.vertical
Layout.alignment: vertical ? Qt.AlignHCenter : Qt.AlignVCenter
Layout.fillWidth: vertical
Layout.fillHeight: !vertical
}