Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 363d32fa authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Nate Graham

Fix faint outline for notification timeout indicator with newer charts

Instead of using highlight as background and painting over that with a
transparent colour, make the chart empty out but flip it so the
direction is the same. This removes any aliasing artifacts that occur
due to antialiasing.

BUG: 423079
parent fe302963
......@@ -221,6 +221,7 @@ RowLayout {
active: closeButton.hovered
Charts.PieChart {
id: chart
anchors.fill: parent
anchors.margins: -Math.round(units.devicePixelRatio)
......@@ -231,12 +232,12 @@ RowLayout {
range { from: 0; to: notificationHeading.timeout; automatic: false }
valueSources: Charts.SingleValueSource { value: notificationHeading.timeout - notificationHeading.remainingTime }
colorSource: Charts.SingleValueSource { value: "transparent" }
backgroundColor: theme.highlightColor
valueSources: Charts.SingleValueSource { value: notificationHeading.remainingTime }
colorSource: Charts.SingleValueSource { value: theme.highlightColor }
thickness: Math.round(units.devicePixelRatio) * 5
transform: Scale { origin.x: chart.width / 2; xScale: -1 }
Markdown is supported
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