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
wilder-5.26
Eugene Popov 4 years ago committed by Nate Graham
parent 0064f7185c
commit b5f903862e
  1. 4
      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 {

Loading…
Cancel
Save