Commit fb868892 authored by Krešimir Čohar's avatar Krešimir Čohar

[notifications] Prevent subpixel font placement

This patch prevents the subpixel placement of certain fonts (most prominently Lato at 11 pt), see https://phabricator.kde.org/F6690997
parent 55df61ea
......@@ -184,7 +184,7 @@ MouseArea {
anchors {
top: parent.top
topMargin: bodyText.lineCount > 1 ? 0 : (mainLayout.height > units.iconSizes.large ? 0.5 : 1) * units.smallSpacing // lift up heading if bodyText is too long/tall
topMargin: bodyText.lineCount > 1 ? 0 : Math.round((mainLayout.height > units.iconSizes.large ? 0.5 : 1) * units.smallSpacing) // lift up heading if bodyText is too long/tall
left: appIconItem.valid || imageItem.nativeWidth > 0 ? appIconItem.right : parent.left
right: parent.right
leftMargin: units.smallSpacing * 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment