on xenial help sign in
cleaner clipping
17ebfaaMichael Zanetti
Launcher/LauncherDelegate.qml+8−4
@@ -117,16 +117,20 @@ Item {
117
117
118 Item {
118 Item {
119 anchors {
119 anchors {
120− fill: progressOverlay
120+ left: parent.left
121− rightMargin: parent.adjustedWidth - (Math.min(100, root.progress) * parent.adjustedWidth / 100) + units.gu(1)
121+ top: parent.top
122+ bottom: parent.bottom
122 }
123 }
124+ width: Math.min(100, root.progress) / 100 * parent.adjustedWidth + units.gu(1)
123 clip: true
125 clip: true
124
126
125 BorderImage {
127 BorderImage {
126 anchors {
128 anchors {
127− fill: parent
129+ left: parent.left
128− rightMargin: -parent.anchors.rightMargin
130+ top: parent.top
131+ bottom: parent.bottom
129 }
132 }
133+ width: progressOverlay.width
130 source: "graphics/progressbar-fill.sci"
134 source: "graphics/progressbar-fill.sci"
131 }
135 }
132 }
136 }