GeneralOperations.qml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. Label
  12. {
  13. id: title
  14. anchors.horizontalCenter: parent.horizontalCenter
  15. renderType: Text.NativeRendering
  16. text: catalog.i18nc("@label", "Sign in to the Ultimaker platform")
  17. font: UM.Theme.getFont("large_bold")
  18. color: UM.Theme.getColor("text")
  19. }
  20. Image
  21. {
  22. id: machinesImage
  23. anchors.horizontalCenter: parent.horizontalCenter
  24. source: UM.Theme.getImage("welcome_cura")
  25. width: parent.width / 2
  26. fillMode: Image.PreserveAspectFit
  27. horizontalAlignment: Image.AlignHCenter
  28. verticalAlignment: Image.AlignVCenter
  29. }
  30. Label
  31. {
  32. id: generalInformationPoints
  33. anchors.horizontalCenter: parent.horizontalCenter
  34. horizontalAlignment: Text.AlignLeft
  35. renderType: Text.NativeRendering
  36. 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")
  37. lineHeight: 1.4
  38. font: UM.Theme.getFont("default")
  39. color: UM.Theme.getColor("text")
  40. }
  41. Cura.PrimaryButton
  42. {
  43. anchors.horizontalCenter: parent.horizontalCenter
  44. width: UM.Theme.getSize("account_button").width
  45. height: UM.Theme.getSize("account_button").height
  46. text: catalog.i18nc("@button", "Sign in")
  47. onClicked: Cura.API.account.login()
  48. fixedWidthMode: true
  49. }
  50. Cura.TertiaryButton
  51. {
  52. anchors.horizontalCenter: parent.horizontalCenter
  53. height: UM.Theme.getSize("account_button").height
  54. text: catalog.i18nc("@button", "Create a free Ultimaker account")
  55. onClicked: Qt.openUrlExternally("https://ultimaker.com/app/ultimaker-cura-account-sign-up?utm_source=cura&utm_medium=software&utm_campaign=menu-signup")
  56. }
  57. }