summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/Workspace.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 12:07:44 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 12:07:44 +1000
commit82139e9c2d04bae0d40fa5702751d6bf7edfce05 (patch)
tree24e325f64accb6e9927fe6d2cb3035f04e5d3ad9 /modules/bar/components/workspaces/Workspace.qml
parentrefactor: bar clock use anchors (diff)
downloadcaelestia-shell-82139e9c2d04bae0d40fa5702751d6bf7edfce05.tar.gz
caelestia-shell-82139e9c2d04bae0d40fa5702751d6bf7edfce05.tar.bz2
caelestia-shell-82139e9c2d04bae0d40fa5702751d6bf7edfce05.zip
refactor: workspaces use inner bar height
Also simplify boxpadding
Diffstat (limited to 'modules/bar/components/workspaces/Workspace.qml')
-rw-r--r--modules/bar/components/workspaces/Workspace.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml
index d8d0f4d..e404c83 100644
--- a/modules/bar/components/workspaces/Workspace.qml
+++ b/modules/bar/components/workspaces/Workspace.qml
@@ -7,12 +7,12 @@ StyledText {
required property int index
required property BoxLayout layout
required property var occupied
- readonly property bool isWorkspace: true
+ readonly property bool isWorkspace: true // Flag for finding workspace children
text: index + 1
color: BarConfig.workspaces.occupiedBg || occupied[index + 1] ? Appearance.colours.text : Appearance.colours.subtext0
horizontalAlignment: StyledText.AlignHCenter
- Layout.preferredWidth: layout.homogenous && !layout.vertical ? layout.height : -1
- Layout.preferredHeight: layout.homogenous && layout.vertical ? layout.width : -1
+ Layout.preferredWidth: layout.homogenous && !layout.vertical ? BarConfig.sizes.innerHeight : -1
+ Layout.preferredHeight: layout.homogenous && layout.vertical ? BarConfig.sizes.innerHeight : -1
}