Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationPopup.qml
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Line(s) | 156 | NumberAnimation { | |||
---|---|---|---|---|---|
160 | to: 0 | 160 | to: 0 | ||
161 | duration: timer.interval | 161 | duration: timer.interval | ||
162 | running: timer.running && units.longDuration > 1 | 162 | running: timer.running && units.longDuration > 1 | ||
163 | } | 163 | } | ||
164 | 164 | | |||
165 | NotificationItem { | 165 | NotificationItem { | ||
166 | id: notificationItem | 166 | id: notificationItem | ||
167 | // let the item bleed into the dialog margins so the close button margins cancel out | 167 | // let the item bleed into the dialog margins so the close button margins cancel out | ||
168 | y: closable || dismissable || configurable ? -notificationPopup.margins.top : 0 | 168 | y: closable || dismissable || configurable ? Math.round(-notificationPopup.margins.top / 2) : 0 | ||
169 | headingRightPadding: -notificationPopup.margins.right | 169 | headingRightPadding: -notificationPopup.margins.right | ||
170 | width: parent.width | 170 | width: parent.width | ||
171 | hovered: area.containsMouse | 171 | hovered: area.containsMouse | ||
172 | maximumLineCount: 8 | 172 | maximumLineCount: 8 | ||
173 | bodyCursorShape: notificationPopup.hasDefaultAction ? Qt.PointingHandCursor : 0 | 173 | bodyCursorShape: notificationPopup.hasDefaultAction ? Qt.PointingHandCursor : 0 | ||
174 | 174 | | |||
175 | thumbnailLeftPadding: -notificationPopup.margins.left | 175 | thumbnailLeftPadding: -notificationPopup.margins.left | ||
176 | thumbnailRightPadding: -notificationPopup.margins.right | 176 | thumbnailRightPadding: -notificationPopup.margins.right | ||
Show All 26 Lines |