GeneralOperations.qml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // Copyright (c) 2018 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.4 as UM
  6. import Cura 1.1 as Cura
  7. Column
  8. {
  9. spacing: UM.Theme.getSize("default_margin").width
  10. Image
  11. {
  12. id: machinesImage
  13. anchors.horizontalCenter: parent.horizontalCenter
  14. source: UM.Theme.getIcon("sign_in_to_cloud")
  15. horizontalAlignment: Image.AlignHCenter
  16. verticalAlignment: Image.AlignVCenter
  17. }
  18. Label
  19. {
  20. id: title
  21. anchors.horizontalCenter: parent.horizontalCenter
  22. horizontalAlignment: Text.AlignHCenter
  23. renderType: Text.NativeRendering
  24. text: catalog.i18nc("@label", "Ultimaker Cloud")
  25. font: UM.Theme.getFont("large_bold")
  26. color: UM.Theme.getColor("text")
  27. }
  28. Label
  29. {
  30. id: generalInformation
  31. anchors.horizontalCenter: parent.horizontalCenter
  32. horizontalAlignment: Text.AlignHCenter
  33. renderType: Text.NativeRendering
  34. text: catalog.i18nc("@label", "Enjoy a more powerful 3D printing experience.")
  35. font: UM.Theme.getFont("default")
  36. color: UM.Theme.getColor("text")
  37. }
  38. Label
  39. {
  40. id: generalInformationPoints
  41. anchors.horizontalCenter: parent.horizontalCenter
  42. horizontalAlignment: Text.AlignLeft
  43. renderType: Text.NativeRendering
  44. text: {
  45. var t = " - Send prints to your Ultimaker printer from anywhere\n"
  46. + " - Access your Ultimaker Cura Settings worldwide\n"
  47. + " - Enhance your workflow with advanced material profiles"
  48. return catalog.i18nc("@label", t)
  49. }
  50. lineHeight: 1.4
  51. font: UM.Theme.getFont("default")
  52. color: UM.Theme.getColor("text")
  53. }
  54. // placeholder
  55. Label
  56. {
  57. text: " "
  58. }
  59. Cura.PrimaryButton
  60. {
  61. anchors.horizontalCenter: parent.horizontalCenter
  62. width: UM.Theme.getSize("account_button").width
  63. height: UM.Theme.getSize("account_button").height
  64. text: catalog.i18nc("@button", "Sign in")
  65. onClicked: Cura.API.account.login()
  66. fixedWidthMode: true
  67. }
  68. Cura.SecondaryButton
  69. {
  70. anchors.horizontalCenter: parent.horizontalCenter
  71. width: UM.Theme.getSize("account_button").width
  72. height: UM.Theme.getSize("account_button").height
  73. text: catalog.i18nc("@button", "Create account")
  74. onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
  75. fixedWidthMode: true
  76. }
  77. }