summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/Workspace.qml
diff options
context:
space:
mode:
authoranders130 <93037023+anders130@users.noreply.github.com>2025-08-13 06:53:40 +0200
committerGitHub <noreply@github.com>2025-08-13 14:53:40 +1000
commit775410393e2b27214f3b9711ee177aff06e03d84 (patch)
tree5a76c85354542f17671a6335bce6da337b5b77d8 /modules/bar/components/workspaces/Workspace.qml
parentbar: allow hiding items and reordering (#379) (diff)
downloadcaelestia-shell-775410393e2b27214f3b9711ee177aff06e03d84.tar.gz
caelestia-shell-775410393e2b27214f3b9711ee177aff06e03d84.tar.bz2
caelestia-shell-775410393e2b27214f3b9711ee177aff06e03d84.zip
bar: per-monitor workspaces option (#394)
NOTE: option is true by default, which is a breaking change * feat(bar): add per-monitor workspace state * fix(bar): correct active workspace indicator * feat(bar): make per-monitor workspaces toggleable * fixes * more fixes * perMonitorWorkspaces default true + add to readme --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Diffstat (limited to 'modules/bar/components/workspaces/Workspace.qml')
-rw-r--r--modules/bar/components/workspaces/Workspace.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml
index f5b99f5..acfb216 100644
--- a/modules/bar/components/workspaces/Workspace.qml
+++ b/modules/bar/components/workspaces/Workspace.qml
@@ -10,6 +10,7 @@ Item {
id: root
required property int index
+ required property int activeWsId
required property var occupied
required property int groupOffset
@@ -32,8 +33,8 @@ Item {
readonly property string activeLabel: Config.bar.workspaces.activeLabel || (root.isOccupied ? occupiedLabel : label)
animate: true
- text: Hyprland.activeWsId === root.ws ? activeLabel : root.isOccupied ? occupiedLabel : label
- color: Config.bar.workspaces.occupiedBg || root.isOccupied || Hyprland.activeWsId === root.ws ? Colours.palette.m3onSurface : Colours.layer(Colours.palette.m3outlineVariant, 2)
+ text: root.activeWsId === root.ws ? activeLabel : root.isOccupied ? occupiedLabel : label
+ color: Config.bar.workspaces.occupiedBg || root.isOccupied || root.activeWsId === root.ws ? Colours.palette.m3onSurface : Colours.layer(Colours.palette.m3outlineVariant, 2)
horizontalAlignment: StyledText.AlignHCenter
verticalAlignment: StyledText.AlignVCenter