use color contexts
Change-Id: Iea8cc397ddd431c61390ddc70c3fab808ef9f72f
This commit is contained in:
parent
9ea35bd26d
commit
eca200f67e
@ -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
|
||||
|
@ -36,6 +36,7 @@ QtQuickControlStyle.SliderStyle {
|
||||
PlasmaCore.Svg {
|
||||
id: grooveSvg
|
||||
imagePath: "widgets/slider"
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
|
||||
}
|
||||
handle: Item {
|
||||
@ -58,12 +59,12 @@ QtQuickControlStyle.SliderStyle {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user