diff --git a/resources/qml/WelcomePages/AddUltimakerPrinter.qml b/resources/qml/WelcomePages/AddUltimakerPrinter.qml index 58cd44fbb0..7325b77ec8 100644 --- a/resources/qml/WelcomePages/AddUltimakerPrinter.qml +++ b/resources/qml/WelcomePages/AddUltimakerPrinter.qml @@ -53,25 +53,36 @@ Control UM.Label { - Layout.fillWidth: true + Layout.fillWidth: false Layout.alignment: Qt.AlignTop wrapMode: Text.WordWrap font: UM.Theme.getFont("default_bold") text: catalog.i18nc("@label", "If you are trying to add a new Ultimaker printer to Cura") } - UM.Label + ColumnLayout { - Layout.fillWidth: true - Layout.alignment: Qt.AlignTop - wrapMode: Text.WordWrap - text: { - const steps = [ - catalog.i18nc("@info", "1. Sign in into Ultimaker Digilal Factory"), - catalog.i18nc("@info", "2. Follow the procedure to add a new printer"), - catalog.i18nc("@info", "3. Your new printer will automatically appear in Cura"), - ]; - return steps.join("
"); + spacing: 0 + + FontMetrics + { + id: fontMetrics + font: UM.Theme.getFont("default") + } + + Repeater { + model: [ + catalog.i18nc("@info", "Sign in into Ultimaker Digilal Factory"), + catalog.i18nc("@info", "Follow the procedure to add a new printer"), + catalog.i18nc("@info", "Your new printer will automatically appear in Cura"), + ] + UM.Label + { + Layout.alignment: Qt.AlignTop + font: fontMetrics.font + Layout.preferredHeight: fontMetrics.height + text: `${index + 1}. ${modelData}` + } } }