WhatsNewContent.qml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 "What's new in Ultimaker Cura" page of the welcome on-boarding process.
  9. //
  10. Item
  11. {
  12. UM.I18nCatalog { id: catalog; name: "cura" }
  13. Label
  14. {
  15. id: titleLabel
  16. anchors.top: parent.top
  17. anchors.horizontalCenter: parent.horizontalCenter
  18. horizontalAlignment: Text.AlignHCenter
  19. text: catalog.i18nc("@label", "What's new in Ultimaker Cura")
  20. color: UM.Theme.getColor("primary_button")
  21. font: UM.Theme.getFont("huge")
  22. renderType: Text.NativeRendering
  23. }
  24. Cura.ScrollableTextArea
  25. {
  26. id: whatsNewTextArea
  27. anchors.top: titleLabel.bottom
  28. anchors.bottom: getStartedButton.top
  29. anchors.topMargin: UM.Theme.getSize("wide_margin").height
  30. anchors.bottomMargin: UM.Theme.getSize("wide_margin").height
  31. anchors.left: parent.left
  32. anchors.right: parent.right
  33. ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
  34. textArea.text: CuraApplication.getTextManager().getChangeLogText()
  35. textArea.textFormat: Text.RichText
  36. textArea.wrapMode: Text.WordWrap
  37. textArea.readOnly: true
  38. textArea.font: UM.Theme.getFont("medium")
  39. }
  40. Cura.PrimaryButton
  41. {
  42. id: getStartedButton
  43. anchors.right: parent.right
  44. anchors.bottom: parent.bottom
  45. text: base.currentItem.next_page_button_text
  46. onClicked: base.showNextPage()
  47. }
  48. }