mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 07:36:04 +08:00
Fix add by ip page styling
CURA-6057
This commit is contained in:
parent
b1fe110f9f
commit
5cce4cd4cd
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user