WelcomePage.qml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright (c) 2018 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.7
  4. import QtQuick.Controls 2.1
  5. import QtQuick.Window 2.2
  6. import UM 1.3 as UM
  7. import Cura 1.1 as Cura
  8. Column
  9. {
  10. id: welcomePage
  11. spacing: UM.Theme.getSize("wide_margin").height
  12. width: parent.width
  13. height: childrenRect.height
  14. anchors.centerIn: parent
  15. Label
  16. {
  17. id: welcomeTextLabel
  18. text: catalog.i18nc("@description", "Please sign in to get verified plugins and materials for Ultimaker Cura Enterprise")
  19. width: Math.round(parent.width / 2)
  20. font: UM.Theme.getFont("default")
  21. color: UM.Theme.getColor("text")
  22. verticalAlignment: Text.AlignVCenter
  23. horizontalAlignment: Text.AlignHCenter
  24. anchors.horizontalCenter: parent.horizontalCenter
  25. wrapMode: Label.WordWrap
  26. renderType: Text.NativeRendering
  27. }
  28. Cura.PrimaryButton
  29. {
  30. id: loginButton
  31. width: UM.Theme.getSize("account_button").width
  32. height: UM.Theme.getSize("account_button").height
  33. anchors.horizontalCenter: parent.horizontalCenter
  34. text: catalog.i18nc("@button", "Sign in")
  35. onClicked: Cura.API.account.login()
  36. fixedWidthMode: true
  37. }
  38. }