From 5cce4cd4cd26023625f2c7ba0eb2433925bbd357 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Mon, 8 Apr 2019 09:56:32 +0200 Subject: [PATCH] Fix add by ip page styling CURA-6057 --- resources/qml/WelcomePages/AddPrinterByIpContent.qml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/resources/qml/WelcomePages/AddPrinterByIpContent.qml b/resources/qml/WelcomePages/AddPrinterByIpContent.qml index 5ec8bd42f8..a6d0f03c75 100644 --- a/resources/qml/WelcomePages/AddPrinterByIpContent.qml +++ b/resources/qml/WelcomePages/AddPrinterByIpContent.qml @@ -69,16 +69,14 @@ Item width: parent.width anchors.top: explainLabel.bottom - TextField + Cura.TextField { id: hostnameField + width: (parent.width / 2) | 0 + height: addPrinterButton.height anchors.verticalCenter: addPrinterButton.verticalCenter anchors.left: parent.left - height: addPrinterButton.height - anchors.right: addPrinterButton.left anchors.margins: UM.Theme.getSize("default_margin").width - font: UM.Theme.getFont("default") - selectByMouse: true validator: RegExpValidator { @@ -89,11 +87,11 @@ Item onAccepted: addPrinterButton.clicked() } - Cura.PrimaryButton + Cura.SecondaryButton { id: addPrinterButton anchors.top: parent.top - anchors.right: parent.right + anchors.left: hostnameField.right anchors.margins: UM.Theme.getSize("default_margin").width text: catalog.i18nc("@button", "Add")