File 0001-Fix-Label-having-non-integer-sizes.patch of Package plasma-framework

From b99ac6454a0353b742421ce614c4bdd175cd3099 Mon Sep 17 00:00:00 2001
From: Antonio Larrosa <antonio.larrosa@gmail.com>
Date: Fri, 19 Feb 2021 13:45:27 +0100
Subject: [PATCH 1/2] Fix Label having non-integer sizes

When using a non-integer baseLine, the height can be non-integer,
resulting in non-exact pixel alignments which generate artifacts
on the screen.

This happened in Kickoff's LeaveView in Plasma 5.18 (currently
used in openSUSE Leap 15.3) where the focus outline was painted
with a different width in the top and bottom borders due to this
pixel misalignment.

This appeared only in Leap 15.3 and not in 15.2 even if they use
the same Plasma version because in Leap 15.3 KF5 was upgraded to
5.76 which includes commit 5ca28a123b8cbbb74cdcb05d357ab5be38385f45
so the Heading object in Kickoff now uses the Label from PC3
and while PC2's Label already rounded its height, in PC3 it didn't.
---
 src/declarativeimports/plasmacomponents3/Label.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/declarativeimports/plasmacomponents3/Label.qml b/src/declarativeimports/plasmacomponents3/Label.qml
index 142f52bad..599605aad 100644
--- a/src/declarativeimports/plasmacomponents3/Label.qml
+++ b/src/declarativeimports/plasmacomponents3/Label.qml
@@ -12,6 +12,9 @@ import org.kde.plasma.core 2.0 as PlasmaCore
 T.Label {
     id: control
 
+    height: Math.ceil(paintedHeight)
+    width: Math.ceil(paintedWidth)
+
     verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
 
     activeFocusOnTab: false
-- 
2.30.1

openSUSE Build Service is sponsored by