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 {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignCenter
Layout.alignment: Qt.AlignHCenter
visible: NotificationService.historyModel.count === 0
spacing: Style.marginM * scaling
spacing: Style.marginL * scaling
Item {
Layout.fillHeight: true
}
NIcon {
text: "notifications_off"
font.pointSize: Style.fontSizeXXXL * scaling
color: Color.mOnSurface
font.pointSize: 64 * scaling
color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter
}
NText {
text: "No notifications"
font.pointSize: Style.fontSizeL * scaling
color: Color.mOnSurface
color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter
}
NText {
text: "Your notifications will show up here as they arrive."
font.pointSize: Style.fontSizeNormal * scaling
font.pointSize: Style.fontSizeS * scaling
color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter
}
Item {
Layout.fillHeight: true
}
}
// Notification list