Commit b5f90386 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Nate Graham
Browse files

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
parent 0064f718
Pipeline #218444 passed with stage
in 9 minutes and 13 seconds
......@@ -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 {
......
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