GeneralOperations.qml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. wrapMode: Text.NoWrap
  36. }
  37. Cura.PrimaryButton
  38. {
  39. anchors.horizontalCenter: parent.horizontalCenter
  40. width: UM.Theme.getSize("account_button").width
  41. height: UM.Theme.getSize("account_button").height
  42. text: catalog.i18nc("@button", "Sign in")
  43. onClicked: Cura.API.account.login()
  44. fixedWidthMode: true
  45. }
  46. Cura.TertiaryButton
  47. {
  48. anchors.horizontalCenter: parent.horizontalCenter
  49. height: UM.Theme.getSize("account_button").height
  50. text: catalog.i18nc("@button", "Create a free Ultimaker account")
  51. onClicked: Qt.openUrlExternally("https://ultimaker.com/app/ultimaker-cura-account-sign-up?utm_source=cura&utm_medium=software&utm_campaign=menu-signup")
  52. }
  53. }