ChangelogContent.qml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright (c) 2021 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.5 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. UM.Label
  14. {
  15. id: titleLabel
  16. anchors.top: parent.top
  17. anchors.horizontalCenter: parent.horizontalCenter
  18. horizontalAlignment: Text.AlignHCenter
  19. text: catalog.i18nc("@label", "Release Notes")
  20. color: UM.Theme.getColor("primary_button")
  21. font: UM.Theme.getFont("huge")
  22. }
  23. Cura.ScrollableTextArea
  24. {
  25. id: changelogTextArea
  26. anchors.top: titleLabel.bottom
  27. anchors.bottom: getStartedButton.top
  28. anchors.topMargin: UM.Theme.getSize("wide_margin").height
  29. anchors.bottomMargin: UM.Theme.getSize("wide_margin").height
  30. anchors.left: parent.left
  31. anchors.right: parent.right
  32. textArea.text: CuraApplication.getTextManager().getChangeLogText()
  33. textArea.textFormat: Text.RichText
  34. textArea.wrapMode: Text.WordWrap
  35. textArea.readOnly: true
  36. textArea.font: UM.Theme.getFont("default")
  37. textArea.onLinkActivated: Qt.openUrlExternally(link)
  38. }
  39. Cura.PrimaryButton
  40. {
  41. id: getStartedButton
  42. anchors.right: parent.right
  43. anchors.bottom: parent.bottom
  44. text: base.currentItem.next_page_button_text
  45. onClicked: base.showNextPage()
  46. }
  47. }