WelcomeContent.qml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. Column // Arrange the items vertically and put everything in the center
  14. {
  15. anchors.centerIn: parent
  16. width: parent.width
  17. spacing: 2 * UM.Theme.getSize("wide_margin").height
  18. Label
  19. {
  20. id: titleLabel
  21. anchors.horizontalCenter: parent.horizontalCenter
  22. horizontalAlignment: Text.AlignHCenter
  23. text: catalog.i18nc("@label", "Welcome to Ultimaker Cura")
  24. color: UM.Theme.getColor("primary_button")
  25. font: UM.Theme.getFont("huge")
  26. renderType: Text.NativeRendering
  27. }
  28. Image
  29. {
  30. id: curaImage
  31. anchors.horizontalCenter: parent.horizontalCenter
  32. source: UM.Theme.getImage("first_run_welcome_cura")
  33. }
  34. Label
  35. {
  36. id: textLabel
  37. anchors.horizontalCenter: parent.horizontalCenter
  38. horizontalAlignment: Text.AlignHCenter
  39. text: catalog.i18nc("@text", "Please follow these steps to set up\nUltimaker Cura. This will only take a few moments.")
  40. font: UM.Theme.getFont("medium")
  41. color: UM.Theme.getColor("text")
  42. renderType: Text.NativeRendering
  43. }
  44. Cura.PrimaryButton
  45. {
  46. id: getStartedButton
  47. anchors.horizontalCenter: parent.horizontalCenter
  48. anchors.margins: UM.Theme.getSize("wide_margin").width
  49. text: catalog.i18nc("@button", "Get started")
  50. onClicked: base.showNextPage()
  51. }
  52. }
  53. }