remove frame sunken-active,
use graphics for slider grooves instead
This commit is contained in:
parent
b5a1397d07
commit
b86b4b2e71
@ -115,14 +115,14 @@ Item {
|
|||||||
|
|
||||||
PlasmaCore.Svg {
|
PlasmaCore.Svg {
|
||||||
id: grooveSvg
|
id: grooveSvg
|
||||||
imagePath: "widgets/frame"
|
imagePath: "widgets/slider"
|
||||||
}
|
}
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: groove
|
id: groove
|
||||||
imagePath: "widgets/frame"
|
imagePath: "widgets/slider"
|
||||||
prefix: "sunken"
|
prefix: "groove"
|
||||||
//FIXME: frameSvg should have a minimumSize attribute, could be added to kdelibs 4.7(maybe just the qml binding is enough)?
|
//FIXME: frameSvg should have a minimumSize attribute, could be added to kdelibs 4.7(maybe just the qml binding is enough)?
|
||||||
height: grooveSvg.elementSize("sunken-topleft").height + grooveSvg.elementSize("sunken-bottomleft").height
|
height: grooveSvg.elementSize("groove-topleft").height + grooveSvg.elementSize("groove-bottomleft").height
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
@ -131,8 +131,8 @@ Item {
|
|||||||
}
|
}
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: highlight
|
id: highlight
|
||||||
imagePath: "widgets/frame"
|
imagePath: "widgets/slider"
|
||||||
prefix: "sunken-active"
|
prefix: "groove-highlight"
|
||||||
height: groove.height
|
height: groove.height
|
||||||
width: inverted ? groove.width - handle.x : fakeHandle.x
|
width: inverted ? groove.width - handle.x : fakeHandle.x
|
||||||
x: inverted ? handle.x : 0
|
x: inverted ? handle.x : 0
|
||||||
|
@ -24,8 +24,8 @@ DualStateButton {
|
|||||||
id: switchItem
|
id: switchItem
|
||||||
|
|
||||||
view: PlasmaCore.FrameSvgItem {
|
view: PlasmaCore.FrameSvgItem {
|
||||||
imagePath: "widgets/frame"
|
imagePath: "widgets/slider"
|
||||||
prefix: "sunken"
|
prefix: "groove"
|
||||||
width: height * 2
|
width: height * 2
|
||||||
height: fontMetricText.height + margins.top
|
height: fontMetricText.height + margins.top
|
||||||
//FIXME: an hack to have font metrics: can we have a proper binding?
|
//FIXME: an hack to have font metrics: can we have a proper binding?
|
||||||
@ -37,8 +37,8 @@ DualStateButton {
|
|||||||
|
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: highlight
|
id: highlight
|
||||||
imagePath: "widgets/frame"
|
imagePath: "widgets/slider"
|
||||||
prefix: "sunken-active"
|
prefix: "groove-highlight"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
opacity: checked ? 1 : 0
|
opacity: checked ? 1 : 0
|
||||||
|
Loading…
Reference in New Issue
Block a user