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 {
|
||||
id: grooveSvg
|
||||
imagePath: "widgets/frame"
|
||||
imagePath: "widgets/slider"
|
||||
}
|
||||
PlasmaCore.FrameSvgItem {
|
||||
id: groove
|
||||
imagePath: "widgets/frame"
|
||||
prefix: "sunken"
|
||||
imagePath: "widgets/slider"
|
||||
prefix: "groove"
|
||||
//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 {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
@ -131,8 +131,8 @@ Item {
|
||||
}
|
||||
PlasmaCore.FrameSvgItem {
|
||||
id: highlight
|
||||
imagePath: "widgets/frame"
|
||||
prefix: "sunken-active"
|
||||
imagePath: "widgets/slider"
|
||||
prefix: "groove-highlight"
|
||||
height: groove.height
|
||||
width: inverted ? groove.width - handle.x : fakeHandle.x
|
||||
x: inverted ? handle.x : 0
|
||||
|
@ -24,8 +24,8 @@ DualStateButton {
|
||||
id: switchItem
|
||||
|
||||
view: PlasmaCore.FrameSvgItem {
|
||||
imagePath: "widgets/frame"
|
||||
prefix: "sunken"
|
||||
imagePath: "widgets/slider"
|
||||
prefix: "groove"
|
||||
width: height * 2
|
||||
height: fontMetricText.height + margins.top
|
||||
//FIXME: an hack to have font metrics: can we have a proper binding?
|
||||
@ -37,8 +37,8 @@ DualStateButton {
|
||||
|
||||
PlasmaCore.FrameSvgItem {
|
||||
id: highlight
|
||||
imagePath: "widgets/frame"
|
||||
prefix: "sunken-active"
|
||||
imagePath: "widgets/slider"
|
||||
prefix: "groove-highlight"
|
||||
anchors.fill: parent
|
||||
|
||||
opacity: checked ? 1 : 0
|
||||
|
Loading…
Reference in New Issue
Block a user