diff options
author | j.delarago <joeydelarago@gmail.com> | 2022-04-26 15:59:24 +0300 |
---|---|---|
committer | j.delarago <joeydelarago@gmail.com> | 2022-04-26 15:59:24 +0300 |
commit | 049ab09119bb1f684d3d856085466528d1d79549 (patch) | |
tree | d95cc499eb940aebd6fc085dda09674e4a7b968d /resources/qml | |
parent | 0213a3833c83879ced7aedf1c629c906e955d449 (diff) |
I've changed the dot radius so they are circles again.
I've simplified the dot spacing logic a bit.
For some reason the background does not line up perfectly with the slider. So when it is set to 0 there is still a slight offset on the slider handle.
CURA-9203
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml index 863e8c3900..625629c810 100644 --- a/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml +++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedInfillDensitySelector.qml @@ -101,7 +101,8 @@ Item { id: backgroundLine height: UM.Theme.getSize("print_setup_slider_groove").height - width: infillSlider.width - UM.Theme.getSize("print_setup_slider_handle").width + width: parent.width - UM.Theme.getSize("print_setup_slider_handle").width + implicitWidth: width anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter color: infillSlider.enabled ? UM.Theme.getColor("quality_slider_available") : UM.Theme.getColor("quality_slider_unavailable") @@ -120,8 +121,10 @@ Item anchors.verticalCenter: parent.verticalCenter // Do not use Math.round otherwise the tickmarks won't be aligned - x: ((handleButton.width / 2) - (backgroundLine.implicitWidth / 2) + (index * ((repeater.width - handleButton.width) / (repeater.count-1)))) - radius: Math.round(backgroundLine.implicitWidth / 2) + // (space between steps) * index of step + x: (backgroundLine.width / (repeater.count - 1)) * index + + radius: Math.round(implicitWidth / 2) visible: (index % 10) == 0 // Only show steps of 10% UM.Label |