summaryrefslogtreecommitdiff
path: root/modules/launcher/Wrapper.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-13 19:07:04 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-13 19:07:04 +1000
commit252f19ec0ec902c1fbb650260b29f1e63fc55867 (patch)
tree7392e723047b0b6035b83588066f3366e37ba722 /modules/launcher/Wrapper.qml
parentinternal: fix blurriness (diff)
downloadcaelestia-shell-252f19ec0ec902c1fbb650260b29f1e63fc55867.tar.gz
caelestia-shell-252f19ec0ec902c1fbb650260b29f1e63fc55867.tar.bz2
caelestia-shell-252f19ec0ec902c1fbb650260b29f1e63fc55867.zip
launcher: prevent overlap with dashboard
Fixes #612
Diffstat (limited to 'modules/launcher/Wrapper.qml')
-rw-r--r--modules/launcher/Wrapper.qml15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/launcher/Wrapper.qml b/modules/launcher/Wrapper.qml
index 51354c2..3312d5a 100644
--- a/modules/launcher/Wrapper.qml
+++ b/modules/launcher/Wrapper.qml
@@ -8,12 +8,22 @@ import QtQuick
Item {
id: root
+ required property ShellScreen screen
required property PersistentProperties visibilities
required property var panels
readonly property bool shouldBeActive: visibilities.launcher && Config.launcher.enabled
property int contentHeight
+ readonly property real maxHeight: {
+ let max = screen.height - Config.border.thickness * 2 - Appearance.spacing.large;
+ if (visibilities.dashboard)
+ max -= panels.dashboard.nonAnimHeight;
+ return max;
+ }
+
+ onMaxHeightChanged: timer.start()
+
visible: height > 0
implicitHeight: 0
implicitWidth: content.implicitWidth
@@ -84,7 +94,7 @@ Item {
interval: Appearance.anim.durations.extraLarge
onRunningChanged: {
- if (running) {
+ if (running && !root.shouldBeActive) {
content.visible = false;
content.active = true;
} else {
@@ -108,6 +118,9 @@ Item {
sourceComponent: Content {
visibilities: root.visibilities
panels: root.panels
+ maxHeight: root.maxHeight
+
+ Component.onCompleted: root.contentHeight = implicitHeight
}
}
}