mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
tweak backdrop
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user