Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationItem.qml
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 33 | ColumnLayout { | |||
---|---|---|---|---|---|
104 | signal replied(string text) | 104 | signal replied(string text) | ||
105 | signal openUrl(string url) | 105 | signal openUrl(string url) | ||
106 | signal fileActionInvoked | 106 | signal fileActionInvoked | ||
107 | 107 | | |||
108 | signal suspendJobClicked | 108 | signal suspendJobClicked | ||
109 | signal resumeJobClicked | 109 | signal resumeJobClicked | ||
110 | signal killJobClicked | 110 | signal killJobClicked | ||
111 | 111 | | |||
112 | spacing: units.smallSpacing | 112 | spacing: 0 | ||
113 | 113 | | |||
114 | NotificationHeader { | 114 | PlasmaExtras.PlasmoidHeading { | ||
115 | id: notificationHeading | 115 | bottomInset: 0 | ||
116 | Layout.fillWidth: true | 116 | bottomPadding: 0 | ||
ngraham: there's no such thing as `PlasmaExtraComponents` | |||||
117 | Layout.leftMargin: notificationItem.headingLeftPadding | 117 | Layout.leftMargin: notificationItem.headingLeftPadding | ||
118 | Layout.rightMargin: notificationItem.headingRightPadding | 118 | Layout.rightMargin: notificationItem.headingRightPadding | ||
119 | background.visible: !notificationItem.inGroup | ||||
ngraham: there are spaces on this line | |||||
I set up Kate to show trailing spaces now, so I should stop putting them accidentally. niccolove: I set up Kate to show trailing spaces now, so I should stop putting them accidentally. | |||||
120 | | ||||
121 | NotificationHeader { | ||||
122 | id: notificationHeading | ||||
123 | anchors.fill: parent | ||||
119 | 124 | | |||
120 | inGroup: notificationItem.inGroup | 125 | inGroup: notificationItem.inGroup | ||
121 | 126 | | |||
122 | notificationType: notificationItem.notificationType | 127 | notificationType: notificationItem.notificationType | ||
123 | jobState: notificationItem.jobState | 128 | jobState: notificationItem.jobState | ||
124 | jobDetails: notificationItem.jobDetails | 129 | jobDetails: notificationItem.jobDetails | ||
125 | 130 | | |||
126 | onConfigureClicked: notificationItem.configureClicked() | 131 | onConfigureClicked: notificationItem.configureClicked() | ||
127 | onDismissClicked: notificationItem.dismissClicked() | 132 | onDismissClicked: notificationItem.dismissClicked() | ||
128 | onCloseClicked: notificationItem.closeClicked() | 133 | onCloseClicked: notificationItem.closeClicked() | ||
129 | } | 134 | } | ||
135 | } | ||||
130 | 136 | | |||
131 | RowLayout { | 137 | RowLayout { | ||
132 | id: defaultHeaderContainer | 138 | id: defaultHeaderContainer | ||
133 | Layout.fillWidth: true | 139 | Layout.fillWidth: true | ||
134 | } | 140 | } | ||
135 | 141 | | |||
136 | // Notification body | 142 | // Notification body | ||
137 | RowLayout { | 143 | RowLayout { | ||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 148 | ColumnLayout { | |||
217 | } | 223 | } | ||
218 | } | 224 | } | ||
219 | 225 | | |||
220 | Item { | 226 | Item { | ||
221 | id: iconContainer | 227 | id: iconContainer | ||
222 | 228 | | |||
223 | Layout.preferredWidth: units.iconSizes.large | 229 | Layout.preferredWidth: units.iconSizes.large | ||
224 | Layout.preferredHeight: units.iconSizes.large | 230 | Layout.preferredHeight: units.iconSizes.large | ||
231 | Layout.topMargin: units.smallSpacing | ||||
232 | Layout.bottomMargin: units.smallSpacing | ||||
225 | 233 | | |||
226 | visible: iconItem.active || imageItem.active | 234 | visible: iconItem.active || imageItem.active | ||
227 | 235 | | |||
228 | PlasmaCore.IconItem { | 236 | PlasmaCore.IconItem { | ||
229 | id: iconItem | 237 | id: iconItem | ||
230 | // don't show two identical icons | 238 | // don't show two identical icons | ||
231 | readonly property bool active: valid && source != notificationItem.applicationIconSource | 239 | readonly property bool active: valid && source != notificationItem.applicationIconSource | ||
232 | anchors.fill: parent | 240 | anchors.fill: parent | ||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |
there's no such thing as PlasmaExtraComponents