Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationItem.qml
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | 124 | RowLayout { | |||
---|---|---|---|---|---|
205 | } | 205 | } | ||
206 | 206 | | |||
207 | Item { | 207 | Item { | ||
208 | id: iconContainer | 208 | id: iconContainer | ||
209 | 209 | | |||
210 | Layout.preferredWidth: units.iconSizes.large | 210 | Layout.preferredWidth: units.iconSizes.large | ||
211 | Layout.preferredHeight: units.iconSizes.large | 211 | Layout.preferredHeight: units.iconSizes.large | ||
212 | 212 | | |||
213 | Layout.rightMargin: LayoutMirroring.enabled ? 0 : sizingButton.width | ||||
214 | Layout.leftMargin: LayoutMirroring.enabled ? sizingButton.width : 0 | ||||
215 | | ||||
213 | visible: iconItem.active || imageItem.active | 216 | visible: iconItem.active || imageItem.active | ||
214 | 217 | | |||
218 | // This only exists so we can get its size to determine how far to move | ||||
219 | // the icon over to the left | ||||
220 | PlasmaComponents.ToolButton { | ||||
221 | id: sizingButton | ||||
222 | iconSource: "window-close" | ||||
223 | visible: false | ||||
224 | } | ||||
225 | | ||||
215 | PlasmaCore.IconItem { | 226 | PlasmaCore.IconItem { | ||
216 | id: iconItem | 227 | id: iconItem | ||
217 | // don't show two identical icons | 228 | // don't show two identical icons | ||
218 | readonly property bool active: valid && source != notificationItem.applicationIconSource | 229 | readonly property bool active: valid && source != notificationItem.applicationIconSource | ||
219 | anchors.fill: parent | 230 | anchors.fill: parent | ||
220 | usesPlasmaTheme: false | 231 | usesPlasmaTheme: false | ||
221 | smooth: true | 232 | smooth: true | ||
222 | source: { | 233 | source: { | ||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |