Fix code styles

CURA-6005
This commit is contained in:
Lipu Fei 2019-01-03 11:08:01 +01:00
parent 773190bee1
commit 136317c3c7
2 changed files with 8 additions and 7 deletions

View File

@ -120,12 +120,11 @@ Button
visible: text != "" && button.hovered visible: text != "" && button.hovered
} }
BusyIndicator { BusyIndicator
{
id: busyIndicator id: busyIndicator
anchors { anchors.centerIn: parent
centerIn: parent
}
width: height width: height
height: parent.height height: parent.height

View File

@ -13,11 +13,12 @@ CheckBox
property alias tooltip: tooltip.text property alias tooltip: tooltip.text
indicator: Rectangle { indicator: Rectangle
{
implicitWidth: UM.Theme.getSize("checkbox").width implicitWidth: UM.Theme.getSize("checkbox").width
implicitHeight: UM.Theme.getSize("checkbox").height implicitHeight: UM.Theme.getSize("checkbox").height
x: 0 x: 0
y: Math.round(parent.height / 2 - height / 2) anchors.verticalCenter: parent.verticalCenter
color: UM.Theme.getColor("main_background") color: UM.Theme.getColor("main_background")
radius: UM.Theme.getSize("checkbox_radius").width radius: UM.Theme.getSize("checkbox_radius").width
border.width: UM.Theme.getSize("default_lining").width border.width: UM.Theme.getSize("default_lining").width
@ -37,7 +38,8 @@ CheckBox
} }
} }
contentItem: Label { contentItem: Label
{
anchors anchors
{ {
left: checkbox.indicator.right left: checkbox.indicator.right