mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
feat: Long Live the DankBar > Top/Bottom positioning
This commit is contained in:
@@ -103,8 +103,14 @@ PanelWindow {
|
||||
}
|
||||
return triggerX
|
||||
}
|
||||
readonly property real calculatedY: Math.max(0, Math.min(screenHeight - popupHeight - Theme.spacingM, triggerY))
|
||||
|
||||
readonly property real calculatedY: {
|
||||
if (SettingsData.dankBarAtBottom) {
|
||||
return Math.max(Theme.spacingM, Math.min(screenHeight - popupHeight - Theme.spacingM, screenHeight - triggerY - popupHeight - SettingsData.dankBarSpacing - 10))
|
||||
} else {
|
||||
return Math.max(0, Math.min(screenHeight - popupHeight - Theme.spacingM, triggerY + SettingsData.dankBarSpacing + 10))
|
||||
}
|
||||
}
|
||||
|
||||
width: popupWidth
|
||||
height: popupHeight
|
||||
x: calculatedX
|
||||
|
||||
Reference in New Issue
Block a user