use color contexts

Change-Id: Iea8cc397ddd431c61390ddc70c3fab808ef9f72f
This commit is contained in:
Marco Martin 2015-05-27 18:18:25 +02:00
parent 9ea35bd26d
commit eca200f67e
2 changed files with 6 additions and 2 deletions

View File

@ -57,6 +57,7 @@ ProgressBarStyle {
height: style.implicitHeight
imagePath: style.imagePath
prefix: "bar-inactive"
colorGroup: PlasmaCore.ColorScope.colorGroup
}
}
@ -66,6 +67,7 @@ ProgressBarStyle {
anchors.verticalCenter: parent.verticalCenter
imagePath: style.imagePath
prefix: "bar-active"
colorGroup: PlasmaCore.ColorScope.colorGroup
width: control.indeterminate ? units.gridUnit * 2 : Math.max(margins.left + margins.right, parent.width)
height: style.implicitHeight

View File

@ -36,6 +36,7 @@ QtQuickControlStyle.SliderStyle {
PlasmaCore.Svg {
id: grooveSvg
imagePath: "widgets/slider"
colorGroup: PlasmaCore.ColorScope.colorGroup
}
handle: Item {
@ -57,13 +58,13 @@ QtQuickControlStyle.SliderStyle {
elementId: "horizontal-slider-handle"
}
}
groove: PlasmaCore.FrameSvgItem {
id: groove
imagePath: "widgets/slider"
prefix: "groove"
height: implicitHeight * Math.max(1, Math.floor(units.devicePixelRatio))
colorGroup: PlasmaCore.ColorScope.colorGroup
PlasmaCore.FrameSvgItem {
id: highlight
@ -73,6 +74,7 @@ QtQuickControlStyle.SliderStyle {
width: styleData.handlePosition
anchors.verticalCenter: parent.verticalCenter
colorGroup: PlasmaCore.ColorScope.colorGroup
visible: value > 0 && slider.enabled
}
@ -83,7 +85,7 @@ QtQuickControlStyle.SliderStyle {
id: repeater
model: control.stepSize > 0 ? 1 + (control.maximumValue - control.minimumValue) / control.stepSize : 0
Rectangle {
color: theme.textColor
color: PlasmaCore.ColorScope.textColor
width: 1 ; height: 3
y: repeater.height
//Position ticklines from styleData.handleWidth to width - styleData.handleWidth/2