diff --git a/src/declarativeimports/plasmastyle/ProgressBarStyle.qml b/src/declarativeimports/plasmastyle/ProgressBarStyle.qml index ccfa6d92e..6c15a32b9 100644 --- a/src/declarativeimports/plasmastyle/ProgressBarStyle.qml +++ b/src/declarativeimports/plasmastyle/ProgressBarStyle.qml @@ -29,7 +29,7 @@ ProgressBarStyle { 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 { id: barSvg diff --git a/src/declarativeimports/plasmastyle/SliderStyle.qml b/src/declarativeimports/plasmastyle/SliderStyle.qml index da286a76d..4824c7de7 100644 --- a/src/declarativeimports/plasmastyle/SliderStyle.qml +++ b/src/declarativeimports/plasmastyle/SliderStyle.qml @@ -63,7 +63,7 @@ QtQuickControlStyle.SliderStyle { id: groove imagePath: "widgets/slider" prefix: "groove" - height: implicitHeight * Math.floor(units.devicePixelRatio) + height: implicitHeight * Math.max(1, Math.floor(units.devicePixelRatio)) PlasmaCore.FrameSvgItem { id: highlight