1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

tweak backdrop

This commit is contained in:
bbedward
2025-08-27 11:35:33 -04:00
parent b4aba30ba8
commit 174025eaff

View File

@@ -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