D17975: [WIP, Notifications] Add padding to notifications
Eike Hein
noreply at phabricator.kde.org
Sat Jan 5 02:50:52 GMT 2019
hein added inline comments.
INLINE COMMENTS
> NotificationItem.qml:33
> width: parent.width
> - implicitHeight: Math.max(appIconItem.valid || imageItem.nativeWidth > 0 ? units.iconSizes.large : 0, mainLayout.height)
> + implicitHeight: Math.max(appIconItem.valid || imageItem.nativeWidth > 0 ? units.iconSizes.large : 0, (mainLayout.height + 1.75 * units.smallSpacing)) // Add 1.75 units.smallSpacing to correct for the topMargin of mainLayout
>
Adding 1.75 pixels is just too arbitrary (and not an even number, and not scaled by device pixel ratio).
> NotificationItem.qml:175
> top: parent.top
> + topMargin: units.smallSpacing * 0.75
> left: appIconItem.valid || imageItem.nativeWidth > 0 ? appIconItem.right : parent.left
Fractions of smallSpacing can lead to subpixel positioning causing blurry text.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D17975
To: rooty, #vdg, #plasma, ngraham
Cc: hein, ndavis, plasma-devel, kvanton, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190105/01c5509c/attachment.html>
More information about the Plasma-devel
mailing list