NotificationHistoryPanel: fix layout alignment

This commit is contained in:
Ly-sec 2025-09-06 12:16:53 +02:00
parent b3e4486699
commit 8658e11c1d

View file

@ -76,30 +76,38 @@ NPanel {
ColumnLayout { ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignHCenter
visible: NotificationService.historyModel.count === 0 visible: NotificationService.historyModel.count === 0
spacing: Style.marginM * scaling spacing: Style.marginL * scaling
Item {
Layout.fillHeight: true
}
NIcon { NIcon {
text: "notifications_off" text: "notifications_off"
font.pointSize: Style.fontSizeXXXL * scaling font.pointSize: 64 * scaling
color: Color.mOnSurface color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }
NText { NText {
text: "No notifications" text: "No notifications"
font.pointSize: Style.fontSizeL * scaling font.pointSize: Style.fontSizeL * scaling
color: Color.mOnSurface color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }
NText { NText {
text: "Your notifications will show up here as they arrive." text: "Your notifications will show up here as they arrive."
font.pointSize: Style.fontSizeNormal * scaling font.pointSize: Style.fontSizeS * scaling
color: Color.mOnSurfaceVariant color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }
Item {
Layout.fillHeight: true
}
} }
// Notification list // Notification list