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:52:01 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 12:52:01 +1000
commit4013fe84343b15cefdec9590b5a032d67b1a6b1a (patch)
tree63cecc6073bc1c418ee9be6f859bb375203ad4ce /modules/bar/components/workspaces/Workspace.qml
parentrefactor: move active workspace indicator to new file (diff)
downloadcaelestia-shell-4013fe84343b15cefdec9590b5a032d67b1a6b1a.tar.gz
caelestia-shell-4013fe84343b15cefdec9590b5a032d67b1a6b1a.tar.bz2
caelestia-shell-4013fe84343b15cefdec9590b5a032d67b1a6b1a.zip
feat: bar workspace groups
Diffstat (limited to 'modules/bar/components/workspaces/Workspace.qml')
-rw-r--r--modules/bar/components/workspaces/Workspace.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml
index 61192c2..2066b1f 100644
--- a/modules/bar/components/workspaces/Workspace.qml
+++ b/modules/bar/components/workspaces/Workspace.qml
@@ -8,11 +8,14 @@ StyledText {
required property bool vertical
required property bool homogenous
required property var occupied
+ required property int groupOffset
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
+ property int ws: groupOffset + index + 1
+
+ text: ws
+ color: BarConfig.workspaces.occupiedBg || occupied[ws] ? Appearance.colours.text : Appearance.colours.subtext0
horizontalAlignment: StyledText.AlignHCenter
Layout.preferredWidth: homogenous && !vertical ? BarConfig.sizes.innerHeight : -1