1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

powermenu: use consistent new-style on locker + greeter

fixes #739
This commit is contained in:
bbedward
2025-11-16 15:05:06 -05:00
parent 2e6dbedb8b
commit ea9b0d2a79
8 changed files with 500 additions and 733 deletions

View File

@@ -40,7 +40,8 @@ DankListView {
NotificationEmptyState {
visible: listView.count === 0
anchors.centerIn: parent
y: 20
anchors.horizontalCenter: parent.horizontalCenter
}
onModelChanged: {

View File

@@ -111,13 +111,20 @@ DankPopout {
implicitHeight: {
let baseHeight = Theme.spacingL * 2
baseHeight += cachedHeaderHeight
baseHeight += (notificationSettings.expanded ? notificationSettings.contentHeight : 0)
baseHeight += Theme.spacingM * 2
const settingsHeight = notificationSettings.expanded ? notificationSettings.contentHeight : 0
let listHeight = notificationList.listContentHeight
if (NotificationService.groupedNotifications.length === 0) {
listHeight = 200
}
baseHeight += Math.min(listHeight, 600)
const maxContentArea = 600
const availableListSpace = Math.max(200, maxContentArea - settingsHeight)
baseHeight += settingsHeight
baseHeight += Math.min(listHeight, availableListSpace)
const maxHeight = root.screen ? root.screen.height * 0.8 : Screen.height * 0.8
return Math.max(300, Math.min(baseHeight, maxHeight))
}
@@ -198,13 +205,6 @@ DankPopout {
showHints: (externalKeyboardController && externalKeyboardController.showKeyboardHints) || false
z: 200
}
Behavior on implicitHeight {
NumberAnimation {
duration: 180
easing.type: Easing.OutQuart
}
}
}
}
}