diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 12:52:01 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 12:52:01 +1000 |
| commit | 4013fe84343b15cefdec9590b5a032d67b1a6b1a (patch) | |
| tree | 63cecc6073bc1c418ee9be6f859bb375203ad4ce /modules/bar/components/workspaces/Workspace.qml | |
| parent | refactor: move active workspace indicator to new file (diff) | |
| download | caelestia-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.qml | 7 |
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 |