diff --git a/applets/notifications/package/contents/ui/NotificationItem.qml b/applets/notifications/package/contents/ui/NotificationItem.qml --- a/applets/notifications/package/contents/ui/NotificationItem.qml +++ b/applets/notifications/package/contents/ui/NotificationItem.qml @@ -71,8 +71,13 @@ property var actionNames: [] property var actionLabels: [] - property int headingLeftPadding: 0 + property int headingLeftPadding: units.smallSpacing property int headingRightPadding: 0 + property int headingTopPadding: 0 + + property int bodyLeftPadding: units.smallSpacing + property int bodyRightPadding: units.smallSpacing + property int bodyBottomPadding: units.smallSpacing property int thumbnailLeftPadding: 0 property int thumbnailRightPadding: 0 @@ -103,6 +108,7 @@ Layout.fillWidth: true Layout.leftMargin: notificationItem.headingLeftPadding Layout.rightMargin: notificationItem.headingRightPadding + Layout.topMargin: notificationItem.headingTopPadding inGroup: notificationItem.inGroup @@ -124,6 +130,9 @@ RowLayout { id: bodyRow Layout.fillWidth: true + Layout.leftMargin: notificationItem.bodyLeftPadding + Layout.rightMargin: notificationItem.bodyRightPadding + Layout.bottomMargin: notificationItem.bodyBottomPadding spacing: units.smallSpacing ColumnLayout { @@ -251,6 +260,9 @@ Loader { id: jobLoader Layout.fillWidth: true + Layout.leftMargin: units.smallSpacing + Layout.rightMargin: units.smallSpacing + Layout.bottomMargin: units.smallSpacing active: notificationItem.notificationType === NotificationManager.Notifications.JobType visible: active sourceComponent: JobItem { @@ -276,6 +288,9 @@ RowLayout { Layout.fillWidth: true + Layout.leftMargin: units.smallSpacing + Layout.rightMargin: units.smallSpacing + Layout.bottomMargin: units.smallSpacing visible: actionRepeater.count > 0 // Notification actions diff --git a/applets/notifications/package/contents/ui/NotificationPopup.qml b/applets/notifications/package/contents/ui/NotificationPopup.qml --- a/applets/notifications/package/contents/ui/NotificationPopup.qml +++ b/applets/notifications/package/contents/ui/NotificationPopup.qml @@ -172,17 +172,13 @@ NotificationItem { id: notificationItem - // let the item bleed into the dialog margins so the close button margins cancel out - y: closable || dismissable || configurable ? -notificationPopup.margins.top : 0 - headingRightPadding: -notificationPopup.margins.right width: parent.width hovered: area.containsMouse maximumLineCount: 8 bodyCursorShape: notificationPopup.hasDefaultAction ? Qt.PointingHandCursor : 0 thumbnailLeftPadding: -notificationPopup.margins.left thumbnailRightPadding: -notificationPopup.margins.right - thumbnailTopPadding: -notificationPopup.margins.top thumbnailBottomPadding: -notificationPopup.margins.bottom closable: true