Replace "transparent" Rectangles by Items

This commit is contained in:
fieldOfView 2017-01-25 15:21:37 +01:00
parent bf3d3d46e2
commit a823980d17
8 changed files with 15 additions and 30 deletions

View file

@ -8,12 +8,10 @@ import QtQuick.Layouts 1.1
import UM 1.1 as UM
Rectangle {
Item {
id: base;
UM.I18nCatalog { id: catalog; name:"cura"}
color: "transparent"
property real progress: UM.Backend.progress;
property int backendState: UM.Backend.state;
property bool activity: Printer.getPlatformActivity;
@ -55,7 +53,7 @@ Rectangle {
text: statusText;
}
Rectangle{
Rectangle {
id: progressBar
width: parent.width - 2 * UM.Theme.getSize("default_margin").width
height: UM.Theme.getSize("progressbar").height
@ -66,7 +64,7 @@ Rectangle {
radius: UM.Theme.getSize("progressbar_radius").width
color: UM.Theme.getColor("progressbar_background")
Rectangle{
Rectangle {
width: Math.max(parent.width * base.progress)
height: parent.height
color: UM.Theme.getColor("progressbar_control")
@ -75,14 +73,13 @@ Rectangle {
}
}
Rectangle{
Item {
id: saveRow
width: base.width
height: saveToButton.height
anchors.top: progressBar.bottom
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.left: parent.left
color: "transparent"
Row {
id: additionalComponentsRow