From 174025eaff2d3fb4155b241ee8ae8377820e2142 Mon Sep 17 00:00:00 2001 From: bbedward Date: Wed, 27 Aug 2025 11:35:33 -0400 Subject: [PATCH] tweak backdrop --- Widgets/DankBackdrop.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Widgets/DankBackdrop.qml b/Widgets/DankBackdrop.qml index 10acfd47..561f9d3b 100644 --- a/Widgets/DankBackdrop.qml +++ b/Widgets/DankBackdrop.qml @@ -44,7 +44,12 @@ Item { readonly property real effectiveBarHeight: Math.max(widgetHeight + SettingsData.topBarInnerPadding + 4, Theme.barHeight - 4 - (8 - SettingsData.topBarInnerPadding)) readonly property real topBarExclusiveZone: SettingsData.topBarVisible && !SettingsData.topBarAutoHide ? effectiveBarHeight + SettingsData.topBarSpacing - 2 + SettingsData.topBarBottomGap : 0 readonly property real availableHeight: screenHeight - topBarExclusiveZone - anchors.bottomMargin: Math.max(Theme.spacingXL * 3, (availableHeight - logoHeight) * 0.15) + anchors.bottomMargin: { + const minMargin = Theme.spacingXL * 3 + const preferredMargin = (availableHeight - logoHeight) * 0.15 + const maxSafeMargin = Math.max(0, availableHeight - logoHeight - Theme.spacingXL) + return Math.min(Math.max(minMargin, preferredMargin), maxSafeMargin) + } opacity: 0.25