Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationItem.qml
Show First 20 Lines • Show All 311 Lines • ▼ Show 20 Line(s) | 277 | RowLayout { | |||
---|---|---|---|---|---|
312 | } | 312 | } | ||
313 | } | 313 | } | ||
314 | 314 | | |||
315 | // thumbnails | 315 | // thumbnails | ||
316 | Loader { | 316 | Loader { | ||
317 | id: thumbnailStripLoader | 317 | id: thumbnailStripLoader | ||
318 | Layout.leftMargin: notificationItem.thumbnailLeftPadding | 318 | Layout.leftMargin: notificationItem.thumbnailLeftPadding | ||
319 | Layout.rightMargin: notificationItem.thumbnailRightPadding | 319 | Layout.rightMargin: notificationItem.thumbnailRightPadding | ||
320 | Layout.topMargin: notificationItem.thumbnailTopPadding | 320 | // no change in Layout.topMargin to keep spacing to notification text consistent | ||
321 | Layout.topMargin: 0 | ||||
321 | Layout.bottomMargin: notificationItem.thumbnailBottomPadding | 322 | Layout.bottomMargin: notificationItem.thumbnailBottomPadding | ||
322 | Layout.fillWidth: true | 323 | Layout.fillWidth: true | ||
323 | active: notificationItem.urls.length > 0 | 324 | active: notificationItem.urls.length > 0 | ||
324 | visible: active | 325 | visible: active | ||
325 | sourceComponent: ThumbnailStrip { | 326 | sourceComponent: ThumbnailStrip { | ||
326 | leftPadding: -thumbnailStripLoader.Layout.leftMargin | 327 | leftPadding: -thumbnailStripLoader.Layout.leftMargin | ||
327 | rightPadding: -thumbnailStripLoader.Layout.rightMargin | 328 | rightPadding: -thumbnailStripLoader.Layout.rightMargin | ||
328 | topPadding: -thumbnailStripLoader.Layout.topMargin | 329 | topPadding: -notificationItem.thumbnailTopPadding | ||
329 | bottomPadding: -thumbnailStripLoader.Layout.bottomMargin | 330 | bottomPadding: -thumbnailStripLoader.Layout.bottomMargin | ||
330 | urls: notificationItem.urls | 331 | urls: notificationItem.urls | ||
331 | onOpenUrl: notificationItem.openUrl(url) | 332 | onOpenUrl: notificationItem.openUrl(url) | ||
332 | onFileActionInvoked: notificationItem.fileActionInvoked() | 333 | onFileActionInvoked: notificationItem.fileActionInvoked() | ||
333 | } | 334 | } | ||
334 | } | 335 | } | ||
335 | 336 | | |||
336 | states: [ | 337 | states: [ | ||
Show All 28 Lines |