mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 10:35:52 +08:00
Resolve alignment issues
If the material list is too long the printer name/print button should be aligned to the top according to the figma design CURA-10507
This commit is contained in:
parent
afed736125
commit
333c573dcc
@ -37,7 +37,7 @@ Rectangle
|
|||||||
Layout.preferredWidth: parent.width / 3
|
Layout.preferredWidth: parent.width / 3
|
||||||
Layout.preferredHeight: childrenRect.height
|
Layout.preferredHeight: childrenRect.height
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: extruders[0].materials.length > 1 ? Qt.AlignTop : Qt.AlignCenter
|
||||||
Layout.fillHeight: false
|
Layout.fillHeight: false
|
||||||
|
|
||||||
source: UM.Theme.getIcon("Printer")
|
source: UM.Theme.getIcon("Printer")
|
||||||
@ -52,7 +52,7 @@ Rectangle
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: parent.width / 2
|
Layout.preferredWidth: parent.width / 2
|
||||||
Layout.preferredHeight: childrenRect.height
|
Layout.preferredHeight: childrenRect.height
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: extruders[0].materials.length > 1 ? Qt.AlignTop : Qt.AlignCenter
|
||||||
spacing: UM.Theme.getSize("narrow_margin").height
|
spacing: UM.Theme.getSize("narrow_margin").height
|
||||||
|
|
||||||
Repeater
|
Repeater
|
||||||
@ -119,7 +119,7 @@ Rectangle
|
|||||||
|
|
||||||
implicitWidth: UM.Theme.getSize("large_button").width
|
implicitWidth: UM.Theme.getSize("large_button").width
|
||||||
implicitHeight: implicitWidth
|
implicitHeight: implicitWidth
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: extruders[0].materials.length > 1 ? Qt.AlignTop : Qt.AlignCenter
|
||||||
Layout.preferredHeight: childrenRect.height
|
Layout.preferredHeight: childrenRect.height
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user