WelcomeContent.qml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. // Arrange the items vertically and put everything in the center
  14. Column
  15. {
  16. anchors.horizontalCenter: parent.horizontalCenter
  17. anchors.verticalCenter: parent.verticalCenter
  18. spacing: UM.Theme.getSize("thick_margin").height
  19. width:parent.width
  20. // Filler item
  21. Item
  22. {
  23. height: UM.Theme.getSize("thick_margin").width
  24. width: parent.width
  25. }
  26. Image
  27. {
  28. id: curaImage
  29. anchors.horizontalCenter: parent.horizontalCenter
  30. source: UM.Theme.getImage("welcome_cura")
  31. fillMode: Image.PreserveAspectFit
  32. width: UM.Theme.getSize("welcome_wizard_content_image_big").width
  33. sourceSize.width: width
  34. sourceSize.height: height
  35. }
  36. // Filler item
  37. Item
  38. {
  39. height: UM.Theme.getSize("thick_margin").width
  40. width: parent.width
  41. }
  42. Label
  43. {
  44. id: titleLabel
  45. anchors.horizontalCenter: parent.horizontalCenter
  46. horizontalAlignment: Text.AlignHCenter
  47. text: catalog.i18nc("@label", "Welcome to Ultimaker Cura")
  48. color: UM.Theme.getColor("primary_button")
  49. font: UM.Theme.getFont("huge_bold")
  50. renderType: Text.NativeRendering
  51. }
  52. Label
  53. {
  54. id: textLabel
  55. anchors.horizontalCenter: parent.horizontalCenter
  56. horizontalAlignment: Text.AlignHCenter
  57. width: titleLabel.width + 2 * UM.Theme.getSize("thick_margin").width
  58. text: catalog.i18nc("@text", "Please follow these steps to set up Ultimaker Cura. This will only take a few moments.")
  59. wrapMode: Text.Wrap
  60. font: UM.Theme.getFont("medium")
  61. color: UM.Theme.getColor("text")
  62. renderType: Text.NativeRendering
  63. }
  64. // Filler item
  65. Item
  66. {
  67. height: UM.Theme.getSize("thick_margin").height
  68. width: parent.width
  69. }
  70. Cura.PrimaryButton
  71. {
  72. id: getStartedButton
  73. anchors.horizontalCenter: parent.horizontalCenter
  74. text: catalog.i18nc("@button", "Get started")
  75. onClicked: base.showNextPage()
  76. }
  77. // Filler item
  78. Item
  79. {
  80. height: UM.Theme.getSize("thick_margin").height
  81. width: parent.width
  82. }
  83. }
  84. }