1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

fix position

This commit is contained in:
bbedward
2025-08-27 11:39:53 -04:00
parent 174025eaff
commit 033098038b

View File

@@ -38,22 +38,13 @@ Item {
anchors.left: parent.left
anchors.bottom: parent.bottom
anchors.leftMargin: Theme.spacingXL * 2
readonly property real logoHeight: 6 * (Theme.fontSizeLarge * 1.2 * 1.2)
readonly property real widgetHeight: Math.max(20, 26 + SettingsData.topBarInnerPadding * 0.6)
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: {
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)
}
anchors.bottomMargin: Theme.spacingXL * 2
opacity: 0.25
StyledText {
anchors.left: parent.left
anchors.bottom: parent.bottom
text: `