Commit 4f1f9b9f authored by Ivan Čukić's avatar Ivan Čukić 👁
Browse files

Make the item heights rounded to avoid font rendering issues

Summary:
Fixes small font rendering issues produced by items which are offset by
half a pixel because of multiplying `gridUnit` with `2.5`. This is especially
noticeable with bitmap fonts where parts of the letters are missing.

Reviewers: mart, davidedmundson, broulik, ngraham

Reviewed By: davidedmundson, ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D11502
parent 8227bb87
......@@ -30,7 +30,7 @@ Kirigami.ScrollablePage {
header: Rectangle {
color: Kirigami.Theme.backgroundColor
width: mainColumn.width
height: Kirigami.Units.gridUnit * 2.5
height: Math.round(Kirigami.Units.gridUnit * 2.5)
RowLayout {
id: searchLayout
spacing: Kirigami.Units.smallSpacing
......
......@@ -27,7 +27,7 @@ Kirigami.ScrollablePage {
id: subCategoryColumn
header: MouseArea {
width: subCategoryColumn.width
height: Kirigami.Units.gridUnit * 2.5
height: Math.round(Kirigami.Units.gridUnit * 2.5)
enabled: !applicationWindow().wideScreen
onClicked: root.pageStack.currentIndex = 0;
Accessible.role: Accessible.Button
......
Supports Markdown
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