diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-30 12:35:47 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-30 12:35:47 +1000 |
| commit | 5c3f27f332c8e67d3645cf35da2a787f40906d14 (patch) | |
| tree | f57cd61cc0627821d3a9dfde2d1ee6c729ca1362 /modules/bar/components/workspaces/OccupiedBg.qml | |
| parent | bar: fix anchor error (diff) | |
| download | caelestia-shell-5c3f27f332c8e67d3645cf35da2a787f40906d14.tar.gz caelestia-shell-5c3f27f332c8e67d3645cf35da2a787f40906d14.tar.bz2 caelestia-shell-5c3f27f332c8e67d3645cf35da2a787f40906d14.zip | |
bar: workspaces some fixes
And anim occupied pill movement
Diffstat (limited to 'modules/bar/components/workspaces/OccupiedBg.qml')
| -rw-r--r-- | modules/bar/components/workspaces/OccupiedBg.qml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/bar/components/workspaces/OccupiedBg.qml b/modules/bar/components/workspaces/OccupiedBg.qml index d4f77b9..c35cd33 100644 --- a/modules/bar/components/workspaces/OccupiedBg.qml +++ b/modules/bar/components/workspaces/OccupiedBg.qml @@ -29,7 +29,7 @@ Item { count++; } if (!occupied[ws + 1]) - pills[pills.length - 1].end = ws; + pills[count - 1].end = ws; } } if (pills.length > count) @@ -42,7 +42,7 @@ Item { Repeater { model: ScriptModel { - values: root.pills + values: root.pills.filter(p => p) } Rectangle { @@ -81,6 +81,14 @@ Item { } } + Behavior on x { + Anim {} + } + + Behavior on y { + Anim {} + } + Behavior on width { Anim {} } |