WelcomePage.qml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. Image
  16. {
  17. id: profileImage
  18. fillMode: Image.PreserveAspectFit
  19. source: "../../images/logobot.svg"
  20. anchors.horizontalCenter: parent.horizontalCenter
  21. width: Math.round(parent.width / 4)
  22. }
  23. Label
  24. {
  25. id: welcomeTextLabel
  26. text: catalog.i18nc("@description", "Get plugins and materials verified by Ultimaker")
  27. width: Math.round(parent.width / 2)
  28. font: UM.Theme.getFont("default")
  29. color: UM.Theme.getColor("text")
  30. verticalAlignment: Text.AlignVCenter
  31. horizontalAlignment: Text.AlignHCenter
  32. anchors.horizontalCenter: parent.horizontalCenter
  33. wrapMode: Label.WordWrap
  34. renderType: Text.NativeRendering
  35. }
  36. Cura.PrimaryButton
  37. {
  38. id: loginButton
  39. width: UM.Theme.getSize("account_button").width
  40. height: UM.Theme.getSize("account_button").height
  41. anchors.horizontalCenter: parent.horizontalCenter
  42. text: catalog.i18nc("@button", "Sign in")
  43. onClicked: Cura.API.account.login()
  44. fixedWidthMode: true
  45. }
  46. }