mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
CURA-4870 Fix binding loop in some components with the height property by changing the vertical alignments
This commit is contained in:
parent
867e6388f2
commit
2818ff7f31
@ -77,7 +77,6 @@ Rectangle
|
|||||||
UM.RecolorImage {
|
UM.RecolorImage {
|
||||||
id: buildplateIcon
|
id: buildplateIcon
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
width: UM.Theme.getSize("topbar_button_icon").width
|
width: UM.Theme.getSize("topbar_button_icon").width
|
||||||
height: UM.Theme.getSize("topbar_button_icon").height
|
height: UM.Theme.getSize("topbar_button_icon").height
|
||||||
sourceSize.width: width
|
sourceSize.width: width
|
||||||
@ -90,7 +89,7 @@ Rectangle
|
|||||||
{
|
{
|
||||||
id: buildplateLabel
|
id: buildplateLabel
|
||||||
anchors.left: buildplateIcon.right
|
anchors.left: buildplateIcon.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: buildplateIcon.verticalCenter
|
||||||
anchors.leftMargin: Math.round(UM.Theme.getSize("default_margin").height / 2)
|
anchors.leftMargin: Math.round(UM.Theme.getSize("default_margin").height / 2)
|
||||||
text: configuration.buildplateConfiguration
|
text: configuration.buildplateConfiguration
|
||||||
color: textColor
|
color: textColor
|
||||||
|
@ -27,7 +27,6 @@ Column
|
|||||||
id: extruderLabel
|
id: extruderLabel
|
||||||
text: catalog.i18nc("@label:extruder label", "Extruder")
|
text: catalog.i18nc("@label:extruder label", "Extruder")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: mainColor
|
color: mainColor
|
||||||
@ -37,7 +36,7 @@ Column
|
|||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: extruderIconItem
|
id: extruderIconItem
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: extruderLabel.verticalCenter
|
||||||
anchors.left: extruderLabel.right
|
anchors.left: extruderLabel.right
|
||||||
anchors.leftMargin: Math.round(UM.Theme.getSize("default_margin").width / 2)
|
anchors.leftMargin: Math.round(UM.Theme.getSize("default_margin").width / 2)
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import Cura 1.0 as Cura
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
property var outputDevice: Cura.MachineManager.printerOutputDevices[0] != null ? Cura.MachineManager.printerOutputDevices[0] : null
|
property var outputDevice: Cura.MachineManager.printerOutputDevices[0]
|
||||||
text: catalog.i18nc("@label:sync indicator", "No match")
|
text: catalog.i18nc("@label:sync indicator", "No match")
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user