Commit 3526334e authored by Fabian Vogt's avatar Fabian Vogt

Round label width

Summary:
Currently the icon labels can be at non-integer positions.
This results in ugly font rendering.

Test Plan: Before/after: https://phabricator.kde.org/F6456830

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17365
parent 0b654afd
......@@ -316,7 +316,7 @@ Item {
PropertyChanges {
target: label
anchors.topMargin: units.smallSpacing
width: Math.min(label.implicitWidth + units.smallSpacing, parent.width - units.smallSpacing)
width: Math.round(Math.min(label.implicitWidth + units.smallSpacing, parent.width - units.smallSpacing))
maximumLineCount: plasmoid.configuration.textLines
horizontalAlignment: Text.AlignHCenter
}
......
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