Commit ca7a9bcb authored by Niccolò Venerandi's avatar Niccolò Venerandi

Add top area to notifications

Summary:
Added the new PlasmoidHeading component to notifications, see:
{F8209734}

Reviewers: broulik, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27979
parent 247ff0bd
......@@ -92,12 +92,16 @@ RowLayout {
PlasmaExtras.DescriptiveLabel {
id: applicationNameLabel
Layout.fillWidth: true
textFormat: Text.PlainText
elide: Text.ElideLeft
text: notificationHeading.applicationName + (notificationHeading.originName ? " · " + notificationHeading.originName : "")
}
Item {
id: spacer
Layout.fillWidth: true
}
PlasmaExtras.DescriptiveLabel {
id: ageLabel
......
......@@ -109,23 +109,29 @@ ColumnLayout {
signal resumeJobClicked
signal killJobClicked
spacing: units.smallSpacing
spacing: 0
NotificationHeader {
id: notificationHeading
Layout.fillWidth: true
PlasmaExtras.PlasmoidHeading {
bottomInset: 0
bottomPadding: 0
Layout.leftMargin: notificationItem.headingLeftPadding
Layout.rightMargin: notificationItem.headingRightPadding
background.visible: !notificationItem.inGroup
inGroup: notificationItem.inGroup
NotificationHeader {
id: notificationHeading
anchors.fill: parent
notificationType: notificationItem.notificationType
jobState: notificationItem.jobState
jobDetails: notificationItem.jobDetails
inGroup: notificationItem.inGroup
onConfigureClicked: notificationItem.configureClicked()
onDismissClicked: notificationItem.dismissClicked()
onCloseClicked: notificationItem.closeClicked()
notificationType: notificationItem.notificationType
jobState: notificationItem.jobState
jobDetails: notificationItem.jobDetails
onConfigureClicked: notificationItem.configureClicked()
onDismissClicked: notificationItem.dismissClicked()
onCloseClicked: notificationItem.closeClicked()
}
}
RowLayout {
......@@ -222,6 +228,8 @@ ColumnLayout {
Layout.preferredWidth: units.iconSizes.large
Layout.preferredHeight: units.iconSizes.large
Layout.topMargin: units.smallSpacing
Layout.bottomMargin: units.smallSpacing
visible: iconItem.active || imageItem.active
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment