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. padding: UM.Theme.getSize("default_margin").width
  11. Image
  12. {
  13. id: machinesImage
  14. anchors.horizontalCenter: parent.horizontalCenter
  15. source: UM.Theme.getIcon("sign_in_to_cloud")
  16. horizontalAlignment: Image.AlignHCenter
  17. verticalAlignment: Image.AlignVCenter
  18. }
  19. Label
  20. {
  21. id: title
  22. anchors.horizontalCenter: parent.horizontalCenter
  23. horizontalAlignment: Text.AlignHCenter
  24. renderType: Text.NativeRendering
  25. text: "Ultimaker Account"
  26. font: UM.Theme.getFont("large_bold")
  27. color: UM.Theme.getColor("text")
  28. }
  29. Label
  30. {
  31. id: generalInformation
  32. anchors.horizontalCenter: parent.horizontalCenter
  33. horizontalAlignment: Text.AlignHCenter
  34. renderType: Text.NativeRendering
  35. text: catalog.i18nc("@label", "Your key to connected 3D printing")
  36. font: UM.Theme.getFont("default_bold")
  37. color: UM.Theme.getColor("text")
  38. }
  39. Label
  40. {
  41. id: generalInformationPoints
  42. anchors.horizontalCenter: parent.horizontalCenter
  43. horizontalAlignment: Text.AlignLeft
  44. renderType: Text.NativeRendering
  45. text: catalog.i18nc("@text", "- Customize your experience with more print profiles and plugins\n- Stay flexible by syncing your setup and loading it anywhere\n- Increase efficiency with a remote workflow on Ultimaker printers")
  46. lineHeight: 1.4
  47. font: UM.Theme.getFont("default")
  48. color: UM.Theme.getColor("text")
  49. }
  50. // placeholder
  51. Label
  52. {
  53. text: " "
  54. }
  55. Cura.PrimaryButton
  56. {
  57. anchors.horizontalCenter: parent.horizontalCenter
  58. width: UM.Theme.getSize("account_button").width
  59. height: UM.Theme.getSize("account_button").height
  60. text: catalog.i18nc("@button", "Sign in")
  61. onClicked: Cura.API.account.login()
  62. fixedWidthMode: true
  63. }
  64. Cura.SecondaryButton
  65. {
  66. anchors.horizontalCenter: parent.horizontalCenter
  67. width: UM.Theme.getSize("account_button").width
  68. height: UM.Theme.getSize("account_button").height
  69. text: catalog.i18nc("@button", "Create account")
  70. onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
  71. fixedWidthMode: true
  72. }
  73. }