GeneralOperations.qml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.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: "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", "The next generation 3D printing workflow")
  35. font: UM.Theme.getFont("default_bold")
  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: catalog.i18nc("@text", "- Send print jobs to Ultimaker printers outside your local network\n- Store your Ultimaker Cura settings in the cloud for use anywhere\n- Get exclusive access to print profiles from leading brands")
  45. lineHeight: 1.4
  46. font: UM.Theme.getFont("default")
  47. color: UM.Theme.getColor("text")
  48. }
  49. // placeholder
  50. Label
  51. {
  52. text: " "
  53. }
  54. Cura.PrimaryButton
  55. {
  56. anchors.horizontalCenter: parent.horizontalCenter
  57. width: UM.Theme.getSize("account_button").width
  58. height: UM.Theme.getSize("account_button").height
  59. text: catalog.i18nc("@button", "Sign in")
  60. onClicked: Cura.API.account.login()
  61. fixedWidthMode: true
  62. }
  63. Cura.SecondaryButton
  64. {
  65. anchors.horizontalCenter: parent.horizontalCenter
  66. width: UM.Theme.getSize("account_button").width
  67. height: UM.Theme.getSize("account_button").height
  68. text: catalog.i18nc("@button", "Create account")
  69. onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
  70. fixedWidthMode: true
  71. }
  72. }