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

@ -156,11 +156,10 @@ UM.Dialog
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Rectangle { Item {
width: 180 width: 180
height: 20 height: 20
Layout.fillWidth: true Layout.fillWidth: true
color: "transparent"
Slider { Slider {
id: smoothing id: smoothing

View file

@ -74,10 +74,8 @@ UM.Dialog
width: machineList.width width: machineList.width
style: ButtonStyle style: ButtonStyle
{ {
background: Rectangle background: Item
{ {
border.width: 0
color: "transparent";
height: UM.Theme.getSize("standard_list_lineheight").height height: UM.Theme.getSize("standard_list_lineheight").height
width: machineList.width width: machineList.width
} }

View file

@ -9,7 +9,7 @@ import QtQuick.Layouts 1.1
import UM 1.1 as UM import UM 1.1 as UM
import Cura 1.0 as Cura import Cura 1.0 as Cura
Rectangle { Item {
id: base id: base
property bool activity: Printer.getPlatformActivity property bool activity: Printer.getPlatformActivity
@ -29,7 +29,6 @@ Rectangle {
property variant printMaterialCosts: PrintInformation.materialCosts property variant printMaterialCosts: PrintInformation.materialCosts
height: childrenRect.height height: childrenRect.height
color: "transparent"
Connections Connections
{ {
@ -84,9 +83,8 @@ Rectangle {
} }
style: ButtonStyle style: ButtonStyle
{ {
background: Rectangle background: Item
{ {
color: "transparent"
UM.RecolorImage UM.RecolorImage
{ {
width: UM.Theme.getSize("save_button_specs_icons").width; width: UM.Theme.getSize("save_button_specs_icons").width;

View file

@ -9,14 +9,13 @@ import QtQuick.Layouts 1.1
import UM 1.1 as UM import UM 1.1 as UM
import Cura 1.0 as Cura import Cura 1.0 as Cura
Rectangle { Item {
id: base id: base
UM.I18nCatalog { id: catalog; name:"cura"} UM.I18nCatalog { id: catalog; name:"cura"}
width: childrenRect.width width: childrenRect.width
height: childrenRect.height height: childrenRect.height
color: "transparent"
Connections Connections
{ {

View file

@ -10,13 +10,11 @@ import QtQuick.Layouts 1.1
import UM 1.1 as UM import UM 1.1 as UM
import Cura 1.0 as Cura import Cura 1.0 as Cura
Rectangle Item
{ {
id: base; id: base;
UM.I18nCatalog { id: catalog; name:"cura"} UM.I18nCatalog { id: catalog; name:"cura"}
color: "transparent"
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0 property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands
property real progress: printerConnected ? Cura.MachineManager.printerOutputDevices[0].progress : 0 property real progress: printerConnected ? Cura.MachineManager.printerOutputDevices[0].progress : 0

View file

@ -8,12 +8,10 @@ import QtQuick.Layouts 1.1
import UM 1.1 as UM import UM 1.1 as UM
Rectangle { Item {
id: base; id: base;
UM.I18nCatalog { id: catalog; name:"cura"} UM.I18nCatalog { id: catalog; name:"cura"}
color: "transparent"
property real progress: UM.Backend.progress; property real progress: UM.Backend.progress;
property int backendState: UM.Backend.state; property int backendState: UM.Backend.state;
property bool activity: Printer.getPlatformActivity; property bool activity: Printer.getPlatformActivity;
@ -75,14 +73,13 @@ Rectangle {
} }
} }
Rectangle{ Item {
id: saveRow id: saveRow
width: base.width width: base.width
height: saveToButton.height height: saveToButton.height
anchors.top: progressBar.bottom anchors.top: progressBar.bottom
anchors.topMargin: UM.Theme.getSize("default_margin").height anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.left: parent.left anchors.left: parent.left
color: "transparent"
Row { Row {
id: additionalComponentsRow id: additionalComponentsRow

View file

@ -201,13 +201,12 @@ Column
color: UM.Theme.getColor("text"); color: UM.Theme.getColor("text");
} }
Rectangle Item
{ {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width * 0.55 + UM.Theme.getSize("default_margin").width width: parent.width * 0.55 + UM.Theme.getSize("default_margin").width
height: UM.Theme.getSize("setting_control").height height: UM.Theme.getSize("setting_control").height
color: "transparent"
ToolButton { ToolButton {
id: variantSelection id: variantSelection

View file

@ -25,14 +25,13 @@ Item
Component.onDestruction: PrintInformation.enabled = false Component.onDestruction: PrintInformation.enabled = false
UM.I18nCatalog { id: catalog; name:"cura"} UM.I18nCatalog { id: catalog; name:"cura"}
Rectangle Item
{ {
id: infillCellLeft id: infillCellLeft
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
width: base.width * .45 - UM.Theme.getSize("default_margin").width width: base.width * .45 - UM.Theme.getSize("default_margin").width
height: childrenRect.height height: childrenRect.height
color: "transparent"
Label Label
{ {
@ -217,7 +216,7 @@ Item
} }
} }
Rectangle Item
{ {
id: helpersCell id: helpersCell
anchors.top: infillCellRight.bottom anchors.top: infillCellRight.bottom
@ -225,7 +224,6 @@ Item
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
height: childrenRect.height height: childrenRect.height
color: "transparent"
Label Label
{ {
@ -463,7 +461,7 @@ Item
supportExtruderCombobox.updateCurrentColor(); supportExtruderCombobox.updateCurrentColor();
} }
Rectangle Item
{ {
id: tipsCell id: tipsCell
anchors.top: helpersCell.bottom anchors.top: helpersCell.bottom
@ -471,7 +469,6 @@ Item
anchors.left: parent.left anchors.left: parent.left
width: parent.width width: parent.width
height: childrenRect.height height: childrenRect.height
color: "transparent"
Label Label
{ {