CloudContent.qml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // Copyright (c) 2019 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import UM 1.3 as UM
  6. import Cura 1.1 as Cura
  7. //
  8. // This component contains the content for the "Ultimaker Cloud" page of the welcome on-boarding process.
  9. //
  10. Item
  11. {
  12. UM.I18nCatalog { id: catalog; name: "cura" }
  13. Label
  14. {
  15. id: titleLabel
  16. anchors.top: parent.top
  17. anchors.topMargin: 40
  18. anchors.horizontalCenter: parent.horizontalCenter
  19. horizontalAlignment: Text.AlignHCenter
  20. text: catalog.i18nc("@label", "Ultimaker Cloud")
  21. color: UM.Theme.getColor("primary_button")
  22. font: UM.Theme.getFont("large_bold")
  23. renderType: Text.NativeRendering
  24. }
  25. Column
  26. {
  27. anchors.top: titleLabel.bottom
  28. anchors.topMargin: 80
  29. anchors.horizontalCenter: parent.horizontalCenter
  30. spacing: 60
  31. Image
  32. {
  33. id: cloudImage
  34. anchors.horizontalCenter: parent.horizontalCenter
  35. source: UM.Theme.getImage("first_run_ultimaker_cloud")
  36. }
  37. Column
  38. {
  39. anchors.horizontalCenter: parent.horizontalCenter
  40. spacing: 30
  41. Label
  42. {
  43. id: highlightTextLabel
  44. anchors.horizontalCenter: parent.horizontalCenter
  45. horizontalAlignment: Text.AlignHCenter
  46. text: catalog.i18nc("@text", "The next generation 3D printing workflow")
  47. textFormat: Text.RichText
  48. color: UM.Theme.getColor("primary")
  49. font: UM.Theme.getFont("medium")
  50. renderType: Text.NativeRendering
  51. }
  52. Label
  53. {
  54. id: textLabel
  55. anchors.horizontalCenter: parent.horizontalCenter
  56. text: {
  57. var t = "<p>- Send print jobs to Ultimaker printers outside your local network<p>"
  58. t += "<p>- Store your Ultimaker Cura settings in the cloud for use anywhere</p>"
  59. t += "<p>- Get exclusive access to material profiles from leading brands</p>"
  60. catalog.i18nc("@text", t)
  61. }
  62. textFormat: Text.RichText
  63. font: UM.Theme.getFont("medium")
  64. renderType: Text.NativeRendering
  65. }
  66. }
  67. }
  68. Cura.PrimaryButton
  69. {
  70. id: finishButton
  71. anchors.right: parent.right
  72. anchors.bottom: parent.bottom
  73. anchors.margins: 40
  74. text: catalog.i18nc("@button", "Finish")
  75. width: 140
  76. fixedWidthMode: true
  77. onClicked: base.showNextPage()
  78. }
  79. Cura.SecondaryButton
  80. {
  81. id: createAccountButton
  82. anchors.left: parent.left
  83. anchors.verticalCenter: finishButton.verticalCenter
  84. anchors.margins: 40
  85. text: catalog.i18nc("@button", "Create an account")
  86. width: 140
  87. fixedWidthMode: true
  88. onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
  89. }
  90. Cura.SecondaryButton
  91. {
  92. id: signInButton
  93. anchors.left: createAccountButton.right
  94. anchors.verticalCenter: finishButton.verticalCenter
  95. text: catalog.i18nc("@button", "Sign in")
  96. width: 80
  97. shadowEnabled: false
  98. color: "transparent"
  99. hoverColor: "transparent"
  100. textHoverColor: UM.Theme.getColor("primary")
  101. fixedWidthMode: true
  102. onClicked: Cura.API.account.login()
  103. }
  104. }