Fix scaling in ProgressBar and Slider
REVIEW: 121417
This commit is contained in:
parent
bf99d9c03c
commit
23b590b90c
@ -48,7 +48,7 @@ ProgressBarStyle {
|
||||
PlasmaCore.FrameSvgItem {
|
||||
anchors.centerIn: parent
|
||||
width: parent.width
|
||||
height: implicitHeight
|
||||
height: style.implicitHeight
|
||||
imagePath: style.imagePath
|
||||
prefix: "bar-inactive"
|
||||
}
|
||||
@ -62,7 +62,7 @@ ProgressBarStyle {
|
||||
prefix: "bar-active"
|
||||
|
||||
width: control.indeterminate ? units.gridUnit * 2 : Math.max(margins.left + margins.right, parent.width)
|
||||
height: implicitHeight
|
||||
height: style.implicitHeight
|
||||
visible: control.indeterminate || currentProgress > 0
|
||||
|
||||
SequentialAnimation {
|
||||
|
@ -36,6 +36,7 @@ QtQuickControlStyle.SliderStyle {
|
||||
PlasmaCore.Svg {
|
||||
id: grooveSvg
|
||||
imagePath: "widgets/slider"
|
||||
|
||||
}
|
||||
handle: Item {
|
||||
width: handle.naturalSize.width
|
||||
@ -62,6 +63,8 @@ QtQuickControlStyle.SliderStyle {
|
||||
id: groove
|
||||
imagePath: "widgets/slider"
|
||||
prefix: "groove"
|
||||
height: implicitHeight * Math.floor(units.devicePixelRatio)
|
||||
|
||||
PlasmaCore.FrameSvgItem {
|
||||
id: highlight
|
||||
imagePath: "widgets/slider"
|
||||
|
Loading…
x
Reference in New Issue
Block a user