diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 12:07:44 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 12:07:44 +1000 |
| commit | 82139e9c2d04bae0d40fa5702751d6bf7edfce05 (patch) | |
| tree | 24e325f64accb6e9927fe6d2cb3035f04e5d3ad9 /modules/bar/components/workspaces/OccupiedBg.qml | |
| parent | refactor: bar clock use anchors (diff) | |
| download | caelestia-shell-82139e9c2d04bae0d40fa5702751d6bf7edfce05.tar.gz caelestia-shell-82139e9c2d04bae0d40fa5702751d6bf7edfce05.tar.bz2 caelestia-shell-82139e9c2d04bae0d40fa5702751d6bf7edfce05.zip | |
refactor: workspaces use inner bar height
Also simplify boxpadding
Diffstat (limited to 'modules/bar/components/workspaces/OccupiedBg.qml')
| -rw-r--r-- | modules/bar/components/workspaces/OccupiedBg.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/bar/components/workspaces/OccupiedBg.qml b/modules/bar/components/workspaces/OccupiedBg.qml index f6998c5..7ffd436 100644 --- a/modules/bar/components/workspaces/OccupiedBg.qml +++ b/modules/bar/components/workspaces/OccupiedBg.qml @@ -1,9 +1,7 @@ import "root:/widgets" -import "root:/services" import "root:/config" import QtQuick import QtQuick.Layouts -import Qt5Compat.GraphicalEffects BoxLayout { id: root @@ -33,8 +31,8 @@ BoxLayout { bottomRightRadius: roundRight // Ugh stupid size errors on reload - Layout.preferredWidth: root.vertical ? layout.width : root.workspaces[index]?.width ?? 1 - Layout.preferredHeight: root.vertical ? root.workspaces[index]?.height ?? 1 : layout.height + Layout.preferredWidth: root.vertical ? BarConfig.sizes.innerHeight : root.workspaces[index]?.width ?? 1 + Layout.preferredHeight: root.vertical ? root.workspaces[index]?.height ?? 1 : BarConfig.sizes.innerHeight Behavior on opacity { NumberAnimation { |