make sure pixelration is not 0
fix rendering Change-Id: Idb5716ded802f4b6e68dabd82449053726977641
This commit is contained in:
parent
d96a8505d9
commit
5d62905a03
@ -29,7 +29,7 @@ ProgressBarStyle {
|
|||||||
|
|
||||||
readonly property string imagePath: "widgets/bar_meter_horizontal"
|
readonly property string imagePath: "widgets/bar_meter_horizontal"
|
||||||
|
|
||||||
readonly property real implicitHeight: barSvg.preferredHeight * Math.floor(units.devicePixelRatio)
|
readonly property real implicitHeight: barSvg.preferredHeight * Math.max(1, Math.floor(units.devicePixelRatio))
|
||||||
|
|
||||||
PlasmaCore.Svg {
|
PlasmaCore.Svg {
|
||||||
id: barSvg
|
id: barSvg
|
||||||
|
@ -63,7 +63,7 @@ QtQuickControlStyle.SliderStyle {
|
|||||||
id: groove
|
id: groove
|
||||||
imagePath: "widgets/slider"
|
imagePath: "widgets/slider"
|
||||||
prefix: "groove"
|
prefix: "groove"
|
||||||
height: implicitHeight * Math.floor(units.devicePixelRatio)
|
height: implicitHeight * Math.max(1, Math.floor(units.devicePixelRatio))
|
||||||
|
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: highlight
|
id: highlight
|
||||||
|
Loading…
Reference in New Issue
Block a user