WelcomeContent.qml 2.0 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.3 as UM
  6. import Cura 1.1 as Cura
  7. //
  8. // This component contains the content for the "Welcome" page of the welcome on-boarding process.
  9. //
  10. Item
  11. {
  12. UM.I18nCatalog { id: catalog; name: "cura" }
  13. anchors.margins: UM.Theme.getSize("welcome_pages_default_margin").width
  14. Column // Arrange the items vertically and put everything in the center
  15. {
  16. anchors.centerIn: parent
  17. width: parent.width
  18. spacing: UM.Theme.getSize("welcome_pages_default_margin").height
  19. Label
  20. {
  21. id: titleLabel
  22. anchors.horizontalCenter: parent.horizontalCenter
  23. horizontalAlignment: Text.AlignHCenter
  24. text: catalog.i18nc("@label", "Welcome to Ultimaker Cura")
  25. color: UM.Theme.getColor("primary_button")
  26. font: UM.Theme.getFont("large_bold")
  27. renderType: Text.NativeRendering
  28. }
  29. Image
  30. {
  31. id: curaImage
  32. anchors.horizontalCenter: parent.horizontalCenter
  33. source: UM.Theme.getImage("first_run_welcome_cura")
  34. }
  35. Label
  36. {
  37. id: textLabel
  38. anchors.horizontalCenter: parent.horizontalCenter
  39. horizontalAlignment: Text.AlignHCenter
  40. text: catalog.i18nc("@text", "Please follow these steps to set up\nUltimaker Cura. This will only take a few moments.")
  41. font: UM.Theme.getFont("medium")
  42. renderType: Text.NativeRendering
  43. }
  44. Cura.PrimaryButton
  45. {
  46. id: getStartedButton
  47. anchors.horizontalCenter: parent.horizontalCenter
  48. anchors.margins: UM.Theme.getSize("welcome_pages_default_margin").width
  49. text: catalog.i18nc("@button", "Get started")
  50. width: 140
  51. fixedWidthMode: true
  52. onClicked: base.showNextPage()
  53. }
  54. }
  55. }