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

many improvements

This commit is contained in:
bbedward
2025-08-12 11:32:33 -04:00
parent 0869677d49
commit 6a113d6dda
5 changed files with 175 additions and 100 deletions

View File

@@ -123,18 +123,26 @@ PanelWindow {
}
}
Column {
FocusScope {
id: contentColumn
anchors.fill: parent
anchors.margins: Theme.spacingL
spacing: Theme.spacingM
focus: true
Component.onCompleted: {
if (notificationHistoryVisible)
forceActiveFocus()
}
Keys.onPressed: keyboardController.handleKey
Keys.onPressed: function(event) {
keyboardController.handleKey(event)
}
Column {
id: contentColumnInner
anchors.fill: parent
spacing: Theme.spacingM
Connections {
function onNotificationHistoryVisibleChanged() {
@@ -156,7 +164,7 @@ PanelWindow {
id: notificationList
width: parent.width
height: parent.height - notificationHeader.height - contentColumn.spacing
height: parent.height - notificationHeader.height - contentColumnInner.spacing
// keyboardController set via Component.onCompleted to avoid binding loop
enableKeyboardNavigation: true
@@ -167,7 +175,9 @@ PanelWindow {
}
}
}
}
} // Column
} // FocusScope
Connections {
function onNotificationsChanged() {