respect color group

This commit is contained in:
Marco Martin 2018-09-07 12:54:24 +02:00
parent 3c48aec7ac
commit 764b6e4760

View File

@ -64,6 +64,7 @@ T.Slider {
background: PlasmaCore.FrameSvgItem { background: PlasmaCore.FrameSvgItem {
imagePath: "widgets/slider" imagePath: "widgets/slider"
prefix: "groove" prefix: "groove"
colorGroup: PlasmaCore.ColorScope.colorGroup
readonly property bool horizontal: control.orientation === Qt.Horizontal readonly property bool horizontal: control.orientation === Qt.Horizontal
implicitWidth: horizontal ? units.gridUnit * 8 : margins.left + margins.right implicitWidth: horizontal ? units.gridUnit * 8 : margins.left + margins.right
implicitHeight: horizontal ? margins.top + margins.bottom : units.gridUnit * 8 implicitHeight: horizontal ? margins.top + margins.bottom : units.gridUnit * 8
@ -75,6 +76,7 @@ T.Slider {
PlasmaCore.FrameSvgItem { PlasmaCore.FrameSvgItem {
imagePath: "widgets/slider" imagePath: "widgets/slider"
prefix: "groove-highlight" prefix: "groove-highlight"
colorGroup: PlasmaCore.ColorScope.colorGroup
x: parent.horizontal ? 0 : (parent.width - width) / 2 x: parent.horizontal ? 0 : (parent.width - width) / 2
y: parent.horizontal ? (parent.height - height) / 2 : control.visualPosition * parent.height y: parent.horizontal ? (parent.height - height) / 2 : control.visualPosition * parent.height
width: Math.max(margins.left + margins.right, parent.horizontal ? control.position * parent.width : parent.width) width: Math.max(margins.left + margins.right, parent.horizontal ? control.position * parent.width : parent.width)