GeneralOperations.qml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.5 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. UM.Label
  12. {
  13. id: title
  14. anchors.horizontalCenter: parent.horizontalCenter
  15. text: catalog.i18nc("@label", "Sign in to the Ultimaker platform")
  16. font: UM.Theme.getFont("large_bold")
  17. }
  18. Image
  19. {
  20. id: machinesImage
  21. anchors.horizontalCenter: parent.horizontalCenter
  22. source: UM.Theme.getImage("welcome_cura")
  23. width: parent.width / 2
  24. fillMode: Image.PreserveAspectFit
  25. horizontalAlignment: Image.AlignHCenter
  26. verticalAlignment: Image.AlignVCenter
  27. }
  28. UM.Label
  29. {
  30. id: generalInformationPoints
  31. anchors.horizontalCenter: parent.horizontalCenter
  32. horizontalAlignment: Text.AlignLeft
  33. text: catalog.i18nc("@text", "- Add material profiles and plug-ins from the Marketplace\n- Back-up and sync your material profiles and plug-ins\n- Share ideas and get help from 48,000+ users in the Ultimaker community")
  34. lineHeight: 1.4
  35. }
  36. Cura.PrimaryButton
  37. {
  38. anchors.horizontalCenter: parent.horizontalCenter
  39. width: UM.Theme.getSize("account_button").width
  40. height: UM.Theme.getSize("account_button").height
  41. text: catalog.i18nc("@button", "Sign in")
  42. onClicked: Cura.API.account.login()
  43. fixedWidthMode: true
  44. }
  45. Cura.TertiaryButton
  46. {
  47. anchors.horizontalCenter: parent.horizontalCenter
  48. height: UM.Theme.getSize("account_button").height
  49. text: catalog.i18nc("@button", "Create a free Ultimaker account")
  50. onClicked: Qt.openUrlExternally("https://ultimaker.com/app/ultimaker-cura-account-sign-up?utm_source=cura&utm_medium=software&utm_campaign=menu-signup")
  51. }
  52. }