From 3be1b8ddf9079cd190345b52c195fd28619b284b Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Mon, 18 Sep 2017 17:39:14 +0200 Subject: [PATCH] CURA-4303 fixes after comments on 1st commit --- resources/qml/SidebarSimple.qml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/resources/qml/SidebarSimple.qml b/resources/qml/SidebarSimple.qml index f65b436acc..2b03858955 100644 --- a/resources/qml/SidebarSimple.qml +++ b/resources/qml/SidebarSimple.qml @@ -454,10 +454,11 @@ Item id: infillSlider anchors.top: selectedInfillRateText.bottom - anchors.left: parent.left + UM.Theme.getSize("sidebar_margin").widt + anchors.left: parent.left + anchors.right: infillIcon.left + anchors.rightMargin: UM.Theme.getSize("sidebar_margin").width height: UM.Theme.getSize("sidebar_margin").height - width: infillCellRight.width - infillIcon.width - UM.Theme.getSize("sidebar_margin").width minimumValue: 0 maximumValue: 100 @@ -484,15 +485,13 @@ Item radius: 1 } - handle: Item { - Rectangle { - id: handleButton - anchors.centerIn: parent - color: control.enabled ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable") - implicitWidth: 10 - implicitHeight: 10 - radius: 10 - } + handle: Rectangle { + id: handleButton + anchors.centerIn: parent + color: control.enabled ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable") + implicitWidth: 10 + implicitHeight: 10 + radius: 10 } tickmarks: Repeater { @@ -512,6 +511,8 @@ Item Item { + id: infillIcon + width: (infillCellRight.width / 5) - (UM.Theme.getSize("sidebar_margin").width) height: width @@ -548,7 +549,6 @@ Item visible: infillIconList.activeIndex == index UM.RecolorImage { - id: infillIcon anchors.fill: parent sourceSize.width: width sourceSize.height: width @@ -602,6 +602,7 @@ Item text: catalog.i18nc("@label", "Enable gradual") font: UM.Theme.getFont("default") color: UM.Theme.getColor("text") + elide: Text.ElideRight } }