Commit 8ccef0e2 authored by David Redondo's avatar David Redondo 🏎
Browse files

Have the close indicator have a minimum width of 1

devicePixelRatio can be less than 1, and so flooring it produces 0.
parent aa54e5dd
......@@ -227,7 +227,7 @@ RowLayout {
Charts.PieChart {
id: chart
anchors.fill: parent
anchors.margins: units.smallSpacing + Math.floor(units.devicePixelRatio)
anchors.margins: units.smallSpacing + Math.max(Math.floor(units.devicePixelRatio), 1)
opacity: (notificationHeading.remainingTime > 0 && notificationHeading.remainingTime < notificationHeading.timeout) ? 1 : 0
Behavior on opacity {
......@@ -239,7 +239,7 @@ RowLayout {
valueSources: Charts.SingleValueSource { value: notificationHeading.remainingTime }
colorSource: Charts.SingleValueSource { value: theme.highlightColor }
thickness: Math.floor(units.devicePixelRatio) * 5
thickness: Math.max(Math.floor(units.devicePixelRatio), 1) * 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