Verified Commit 86a4c743 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[desktoppackage] Reverse ruler handles on the left

Given current situation, I believe this is the best we could do. SVG has
only two handle elements per orientation, so we should either mirror
half of them using QtQuick transformations, or swap min/max. Both
methods have their own disadvantages. This method (swapping) is used
for preview in Plasma Theme Explorer, so it should be a "reference
implementation".
parent 9da987da
......@@ -152,7 +152,7 @@ PlasmaCore.FrameSvgItem {
alignment: panel.alignment | Qt.AlignRight
visible: panel.alignment !== Qt.AlignLeft
offset: panel.offset
graphicElementName: "minslider"
graphicElementName: "maxslider"
onValueChanged: panel.minimumLength = value
maximumPosition: offsetHandle.position - PlasmaCore.Units.gridUnit * 3
minimumPosition: {
......@@ -167,7 +167,7 @@ PlasmaCore.FrameSvgItem {
alignment: panel.alignment | Qt.AlignRight
visible: panel.alignment !== Qt.AlignLeft
offset: panel.offset
graphicElementName: "maxslider"
graphicElementName: "minslider"
onValueChanged: panel.maximumLength = value
maximumPosition: offsetHandle.position - PlasmaCore.Units.gridUnit * 3
minimumPosition: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment