diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-01 17:01:28 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-01 17:01:28 +1000 |
| commit | 894fc9bfe6889539ab5a52a4b72474236cbc4bd6 (patch) | |
| tree | 8092767841632717142cffc5596b1ea9bb7a6b2f /modules/bar/components/workspaces/OccupiedBg.qml | |
| parent | bar: fix workspaces occupied (diff) | |
| download | caelestia-shell-894fc9bfe6889539ab5a52a4b72474236cbc4bd6.tar.gz caelestia-shell-894fc9bfe6889539ab5a52a4b72474236cbc4bd6.tar.bz2 caelestia-shell-894fc9bfe6889539ab5a52a4b72474236cbc4bd6.zip | |
bar: use loaders
Use loaders for all optional components
e.g. workspace windows and occupied background
Fix bar preset loader usage
Fix occupied group
Change text on active ws colour
Tray no extension for paths (use qt auto resolution)
Diffstat (limited to 'modules/bar/components/workspaces/OccupiedBg.qml')
| -rw-r--r-- | modules/bar/components/workspaces/OccupiedBg.qml | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/bar/components/workspaces/OccupiedBg.qml b/modules/bar/components/workspaces/OccupiedBg.qml index 774e176..ccbc75f 100644 --- a/modules/bar/components/workspaces/OccupiedBg.qml +++ b/modules/bar/components/workspaces/OccupiedBg.qml @@ -38,10 +38,6 @@ Item { pills.splice(count, pills.length - count); } - anchors.fill: parent - opacity: BarConfig.workspaces.occupiedBg ? 1 : 0 - z: -1 - Repeater { model: ScriptModel { values: root.pills.filter(p => p) @@ -52,8 +48,8 @@ Item { required property var modelData - property Workspace start: root.workspaces[modelData.start - 1] ?? null - property Workspace end: root.workspaces[modelData.end - 1] ?? null + readonly property Workspace start: root.workspaces[modelData.start - 1 - root.groupOffset] ?? null + readonly property Workspace end: root.workspaces[modelData.end - 1 - root.groupOffset] ?? null color: Appearance.alpha(Appearance.colours.m3surfaceContainerHigh, true) radius: BarConfig.workspaces.rounded ? Appearance.rounding.full : 0 @@ -93,10 +89,6 @@ Item { } } - Behavior on opacity { - Anim {} - } - component Anim: NumberAnimation { duration: Appearance.anim.durations.normal easing.type: Easing.BezierSpline |