diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-27 10:42:08 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-27 10:42:08 +0800 |
| commit | 63da636144635e5aa6b7ff1a2d2eec2a1e35aafa (patch) | |
| tree | cd5461058c7afedb2d17f474f13ee218759519ba /modules/bar/components/workspaces/OccupiedBg.qml | |
| parent | drawers: dont use hyprland cursor pos (diff) | |
| download | caelestia-shell-63da636144635e5aa6b7ff1a2d2eec2a1e35aafa.tar.gz caelestia-shell-63da636144635e5aa6b7ff1a2d2eec2a1e35aafa.tar.bz2 caelestia-shell-63da636144635e5aa6b7ff1a2d2eec2a1e35aafa.zip | |
internal: bar only vertical
The bar can only be vertical
Remove box, boxlayout and anchortext
Add StyledClippingRect
Diffstat (limited to 'modules/bar/components/workspaces/OccupiedBg.qml')
| -rw-r--r-- | modules/bar/components/workspaces/OccupiedBg.qml | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/modules/bar/components/workspaces/OccupiedBg.qml b/modules/bar/components/workspaces/OccupiedBg.qml index 9de3d5b..4fba2f4 100644 --- a/modules/bar/components/workspaces/OccupiedBg.qml +++ b/modules/bar/components/workspaces/OccupiedBg.qml @@ -9,7 +9,6 @@ import QtQuick Item { id: root - required property bool vertical required property list<Workspace> workspaces required property var occupied required property int groupOffset @@ -44,7 +43,7 @@ Item { values: root.pills.filter(p => p) } - Rectangle { + StyledRect { id: rect required property var modelData @@ -57,23 +56,14 @@ Item { x: start?.x ?? 0 y: start?.y ?? 0 - implicitWidth: root.vertical ? BarConfig.sizes.innerHeight : end?.x + end?.width - start?.x - implicitHeight: root.vertical ? end?.y + end?.height - start?.y : BarConfig.sizes.innerHeight + implicitWidth: BarConfig.sizes.innerHeight + implicitHeight: end?.y + end?.height - start?.y - anchors.horizontalCenter: root.vertical ? parent.horizontalCenter : undefined - anchors.verticalCenter: root.vertical ? undefined : parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter scale: 0 Component.onCompleted: scale = 1 - Behavior on color { - ColorAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } - Behavior on scale { Anim { easing.bezierCurve: Appearance.anim.curves.standardDecel |