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

Round label width

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

Test Plan: Before/after:

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
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