Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/WelcomePages/AddPrinterByIpContent.qml')
-rw-r--r--resources/qml/WelcomePages/AddPrinterByIpContent.qml61
1 files changed, 48 insertions, 13 deletions
diff --git a/resources/qml/WelcomePages/AddPrinterByIpContent.qml b/resources/qml/WelcomePages/AddPrinterByIpContent.qml
index 90fdd2be91..1adaa09a49 100644
--- a/resources/qml/WelcomePages/AddPrinterByIpContent.qml
+++ b/resources/qml/WelcomePages/AddPrinterByIpContent.qml
@@ -5,7 +5,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
-import UM 1.5 as UM
+import UM 1.3 as UM
import Cura 1.5 as Cura
@@ -61,7 +61,7 @@ Item
}
}
- UM.Label
+ Label
{
id: titleLabel
anchors.top: parent.top
@@ -70,6 +70,7 @@ Item
text: catalog.i18nc("@label", "Add printer by IP address")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
+ renderType: Text.NativeRendering
}
Item
@@ -87,13 +88,17 @@ Item
anchors.right: parent.right
anchors.margins: UM.Theme.getSize("default_margin").width
- UM.Label
+ Label
{
id: explainLabel
height: contentHeight
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
+
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
text: catalog.i18nc("@label", "Enter the IP address of your printer on the network.")
}
@@ -131,7 +136,7 @@ Item
onAccepted: addPrinterButton.clicked()
}
- UM.Label
+ Label
{
id: invalidInputLabel
anchors.top: hostnameField.bottom
@@ -139,6 +144,9 @@ Item
anchors.left: parent.left
visible: false
text: catalog.i18nc("@text", "Please enter a valid IP address.")
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
}
Cura.SecondaryButton
@@ -180,11 +188,14 @@ Item
anchors.top: userInputFields.bottom
anchors.margins: UM.Theme.getSize("default_margin").width
- UM.Label
+ Label
{
id: waitResponseLabel
anchors.top: parent.top
anchors.margins: UM.Theme.getSize("default_margin").width
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
visible: addPrinterByIpScreen.hasRequestInProgress || (addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.isPrinterDiscovered)
textFormat: Text.RichText
@@ -214,15 +225,18 @@ Item
visible: addPrinterByIpScreen.isPrinterDiscovered
- UM.Label
+ Label
{
id: printerNameLabel
anchors.top: parent.top
font: UM.Theme.getFont("large")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
+
text: !addPrinterByIpScreen.isPrinterDiscovered ? "???" : addPrinterByIpScreen.discoveredPrinter.name
}
- UM.Label
+ Label
{
id: printerCannotBeAddedLabel
width: parent.width
@@ -231,6 +245,8 @@ Item
text: catalog.i18nc("@label", "This printer cannot be added because it's an unknown printer or it's not the host of a group.")
visible: addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.canAddPrinter
font: UM.Theme.getFont("default_bold")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
wrapMode: Text.WordWrap
}
@@ -242,33 +258,52 @@ Item
columns: 2
columnSpacing: UM.Theme.getSize("default_margin").width
- UM.Label
+ Label
{
text: catalog.i18nc("@label", "Type")
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
}
- UM.Label
+ Label
{
id: typeText
text: !addPrinterByIpScreen.isPrinterDiscovered ? "?" : addPrinterByIpScreen.discoveredPrinter.readableMachineType
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
}
- UM.Label
+
+ Label
{
text: catalog.i18nc("@label", "Firmware version")
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
}
- UM.Label
+ Label
{
id: firmwareText
text: !addPrinterByIpScreen.isPrinterDiscovered ? "0.0.0.0" : addPrinterByIpScreen.discoveredPrinter.device.getProperty("firmware_version")
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
}
- UM.Label
+ Label
{
text: catalog.i18nc("@label", "Address")
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
}
- UM.Label
+ Label
{
id: addressText
text: !addPrinterByIpScreen.isPrinterDiscovered ? "0.0.0.0" : addPrinterByIpScreen.discoveredPrinter.address
+ font: UM.Theme.getFont("default")
+ color: UM.Theme.getColor("text")
+ renderType: Text.NativeRendering
}
}