From b5f903862e9383a8c7cb6087c1cdb5786c140f7b Mon Sep 17 00:00:00 2001 From: Eugene Popov Date: Tue, 16 Aug 2022 00:25:59 +0000 Subject: [PATCH] applets/notifications: Fix displaying header progress indicator on different DPI Currently, the progress indicator is normally displayed only if the DPI is a multiple of 100; at other DPI values it's almost invisible or not visible at all. This commit fixes that issue. BUG: 435004 FIXED-IN: 5.24.7 --- .../notifications/package/contents/ui/NotificationHeader.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applets/notifications/package/contents/ui/NotificationHeader.qml b/applets/notifications/package/contents/ui/NotificationHeader.qml index 31f4b1cc2..d01c8afbe 100644 --- a/applets/notifications/package/contents/ui/NotificationHeader.qml +++ b/applets/notifications/package/contents/ui/NotificationHeader.qml @@ -232,8 +232,8 @@ RowLayout { Charts.PieChart { id: chart - anchors.fill: parent - anchors.margins: PlasmaCore.Units.smallSpacing + Math.max(Math.floor(PlasmaCore.Units.devicePixelRatio), 1) + anchors.fill: parent.contentItem + anchors.margins: Math.max(Math.floor(PlasmaCore.Units.devicePixelRatio), 1) opacity: (notificationHeading.remainingTime > 0 && notificationHeading.remainingTime < notificationHeading.timeout) ? 1 : 0 Behavior on opacity {