Fix add by ip page styling

CURA-6057
This commit is contained in:
Lipu Fei 2019-04-08 09:56:32 +02:00
parent b1fe110f9f
commit 5cce4cd4cd

View File

@ -69,16 +69,14 @@ Item
width: parent.width width: parent.width
anchors.top: explainLabel.bottom anchors.top: explainLabel.bottom
TextField Cura.TextField
{ {
id: hostnameField id: hostnameField
width: (parent.width / 2) | 0
height: addPrinterButton.height
anchors.verticalCenter: addPrinterButton.verticalCenter anchors.verticalCenter: addPrinterButton.verticalCenter
anchors.left: parent.left anchors.left: parent.left
height: addPrinterButton.height
anchors.right: addPrinterButton.left
anchors.margins: UM.Theme.getSize("default_margin").width anchors.margins: UM.Theme.getSize("default_margin").width
font: UM.Theme.getFont("default")
selectByMouse: true
validator: RegExpValidator validator: RegExpValidator
{ {
@ -89,11 +87,11 @@ Item
onAccepted: addPrinterButton.clicked() onAccepted: addPrinterButton.clicked()
} }
Cura.PrimaryButton Cura.SecondaryButton
{ {
id: addPrinterButton id: addPrinterButton
anchors.top: parent.top anchors.top: parent.top
anchors.right: parent.right anchors.left: hostnameField.right
anchors.margins: UM.Theme.getSize("default_margin").width anchors.margins: UM.Theme.getSize("default_margin").width
text: catalog.i18nc("@button", "Add") text: catalog.i18nc("@button", "Add")