diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-13 11:25:11 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-13 11:25:11 +1000 |
| commit | a57dd9343a2643f73f3994dc230b824617f89ecf (patch) | |
| tree | 4b36f90728ebd14b4e85ec6c3d69a28dd907c952 /modules/bar/popouts/Content.qml | |
| parent | network: fix undef errors (diff) | |
| download | caelestia-shell-a57dd9343a2643f73f3994dc230b824617f89ecf.tar.gz caelestia-shell-a57dd9343a2643f73f3994dc230b824617f89ecf.tar.bz2 caelestia-shell-a57dd9343a2643f73f3994dc230b824617f89ecf.zip | |
popouts/tray: better interaction
Not exclusive when on first layer of submenus
Closes #610
Diffstat (limited to 'modules/bar/popouts/Content.qml')
| -rw-r--r-- | modules/bar/popouts/Content.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index b600867..5c9fdf7 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -10,11 +10,13 @@ Item { id: root required property Item wrapper + readonly property Popout currentPopout: content.children.find(c => c.shouldBeActive) ?? null + readonly property Item current: currentPopout?.item ?? null anchors.centerIn: parent - implicitWidth: (content.children.find(c => c.shouldBeActive)?.implicitWidth ?? 0) + Appearance.padding.large * 2 - implicitHeight: (content.children.find(c => c.shouldBeActive)?.implicitHeight ?? 0) + Appearance.padding.large * 2 + implicitWidth: (currentPopout?.implicitWidth ?? 0) + Appearance.padding.large * 2 + implicitHeight: (currentPopout?.implicitHeight ?? 0) + Appearance.padding.large * 2 Item { id: content |