|
@@ -19,7 +19,7 @@ Item
|
|
|
{
|
|
|
id: titleLabel
|
|
|
anchors.top: parent.top
|
|
|
- anchors.topMargin: 40
|
|
|
+ anchors.topMargin: UM.Theme.getSize("welcome_pages_default_margin").height
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
text: catalog.i18nc("@label", "Ultimaker Cloud")
|
|
@@ -28,48 +28,65 @@ Item
|
|
|
renderType: Text.NativeRendering
|
|
|
}
|
|
|
|
|
|
- Column
|
|
|
+ // Area where the cloud contents can be put. Pictures, texts and such.
|
|
|
+ Item
|
|
|
{
|
|
|
+ id: cloudContentsArea
|
|
|
anchors.top: titleLabel.bottom
|
|
|
- anchors.topMargin: 80
|
|
|
- anchors.horizontalCenter: parent.horizontalCenter
|
|
|
-
|
|
|
- spacing: 60
|
|
|
-
|
|
|
- Image
|
|
|
- {
|
|
|
- id: cloudImage
|
|
|
- anchors.horizontalCenter: parent.horizontalCenter
|
|
|
- source: UM.Theme.getImage("first_run_ultimaker_cloud")
|
|
|
- }
|
|
|
+ anchors.bottom: finishButton.top
|
|
|
+ anchors.left: parent.left
|
|
|
+ anchors.right: parent.right
|
|
|
+ anchors.margins: UM.Theme.getSize("default_margin").width
|
|
|
|
|
|
+ // Pictures and texts are arranged using Columns with spacing. The whole picture and text area is centered in
|
|
|
+ // the cloud contents area.
|
|
|
Column
|
|
|
{
|
|
|
- anchors.horizontalCenter: parent.horizontalCenter
|
|
|
+ anchors.centerIn: parent
|
|
|
+ width: childrenRect.width
|
|
|
+ height: childrenRect.height
|
|
|
+
|
|
|
+ spacing: 20 * screenScaleFactor
|
|
|
|
|
|
- spacing: 30
|
|
|
+ Image // Cloud image
|
|
|
+ {
|
|
|
+ id: cloudImage
|
|
|
+ anchors.horizontalCenter: parent.horizontalCenter
|
|
|
+ source: UM.Theme.getImage("first_run_ultimaker_cloud")
|
|
|
+ }
|
|
|
|
|
|
- Label
|
|
|
+ Label // A title-ish text
|
|
|
{
|
|
|
id: highlightTextLabel
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
text: catalog.i18nc("@text", "The next generation 3D printing workflow")
|
|
|
textFormat: Text.RichText
|
|
|
- color: UM.Theme.getColor("text_light_blue")
|
|
|
+ color: UM.Theme.getColor("primary")
|
|
|
font: UM.Theme.getFont("medium")
|
|
|
renderType: Text.NativeRendering
|
|
|
}
|
|
|
|
|
|
- Label
|
|
|
+ Label // A number of text items
|
|
|
{
|
|
|
id: textLabel
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
- text: {
|
|
|
- var t = "<p>- Send print jobs to Ultimaker printers outside your local network<p>"
|
|
|
- t += "<p>- Store your Ultimaker Cura settings in the cloud for use anywhere</p>"
|
|
|
- t += "<p>- Get exclusive access to material profiles from leading brands</p>"
|
|
|
- catalog.i18nc("@text", t)
|
|
|
+ text:
|
|
|
+ {
|
|
|
+ // There are 3 text items, each of which is translated separately as a single piece of text.
|
|
|
+ var full_text = ""
|
|
|
+ var t = ""
|
|
|
+
|
|
|
+ t = catalog.i18nc("@text", "- Send print jobs to Ultimaker printers outside your local network")
|
|
|
+ full_text += "<p>" + t + "</p>"
|
|
|
+
|
|
|
+ t = catalog.i18nc("@text", "- Store your Ultimaker Cura settings in the cloud for use anywhere")
|
|
|
+ full_text += "<p>" + t + "</p>"
|
|
|
+
|
|
|
+ t = catalog.i18nc("@text", "- Get exclusive access to material profiles from leading brands")
|
|
|
+ full_text += "<p>" + t + "</p>"
|
|
|
+
|
|
|
+ return full_text
|
|
|
}
|
|
|
textFormat: Text.RichText
|
|
|
font: UM.Theme.getFont("medium")
|
|
@@ -78,12 +95,13 @@ Item
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // Bottom buttons go here
|
|
|
Cura.PrimaryButton
|
|
|
{
|
|
|
id: finishButton
|
|
|
anchors.right: parent.right
|
|
|
anchors.bottom: parent.bottom
|
|
|
- anchors.margins: 40
|
|
|
+ anchors.margins: UM.Theme.getSize("welcome_pages_default_margin").width
|
|
|
text: catalog.i18nc("@button", "Finish")
|
|
|
width: 140
|
|
|
fixedWidthMode: true
|
|
@@ -95,25 +113,31 @@ Item
|
|
|
id: createAccountButton
|
|
|
anchors.left: parent.left
|
|
|
anchors.verticalCenter: finishButton.verticalCenter
|
|
|
- anchors.margins: 40
|
|
|
+ anchors.margins: UM.Theme.getSize("welcome_pages_default_margin").width
|
|
|
text: catalog.i18nc("@button", "Create an account")
|
|
|
width: 140
|
|
|
fixedWidthMode: true
|
|
|
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
|
|
|
}
|
|
|
|
|
|
- Cura.SecondaryButton
|
|
|
+ Label
|
|
|
{
|
|
|
id: signInButton
|
|
|
anchors.left: createAccountButton.right
|
|
|
anchors.verticalCenter: finishButton.verticalCenter
|
|
|
+ anchors.margins: UM.Theme.getSize("welcome_pages_default_margin").width
|
|
|
text: catalog.i18nc("@button", "Sign in")
|
|
|
- width: 80
|
|
|
- shadowEnabled: false
|
|
|
- color: "transparent"
|
|
|
- hoverColor: "transparent"
|
|
|
- textHoverColor: UM.Theme.getColor("text_light_blue")
|
|
|
- fixedWidthMode: true
|
|
|
- onClicked: Cura.API.account.login()
|
|
|
+ color: UM.Theme.getColor("secondary_button_text")
|
|
|
+ font: UM.Theme.getFont("medium")
|
|
|
+ renderType: Text.NativeRendering
|
|
|
+
|
|
|
+ MouseArea
|
|
|
+ {
|
|
|
+ anchors.fill: parent
|
|
|
+ hoverEnabled: true
|
|
|
+ onClicked: Cura.API.account.login()
|
|
|
+ onEntered: parent.font.underline = true
|
|
|
+ onExited: parent.font.underline = false
|
|
|
+ }
|
|
|
}
|
|
|
}
|