Use ScrollableTextArea in whats new page

CURA-6057
This commit is contained in:
Lipu Fei 2019-04-08 14:11:25 +02:00
parent 4f1282df04
commit ac1b1a9902

View File

@ -27,8 +27,10 @@ Item
renderType: Text.NativeRendering renderType: Text.NativeRendering
} }
Rectangle Cura.ScrollableTextArea
{ {
id: whatsNewTextArea
anchors.top: titleLabel.bottom anchors.top: titleLabel.bottom
anchors.bottom: getStartedButton.top anchors.bottom: getStartedButton.top
anchors.topMargin: UM.Theme.getSize("wide_margin").height anchors.topMargin: UM.Theme.getSize("wide_margin").height
@ -36,27 +38,12 @@ Item
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
border.color: "#dfdfdf"
border.width: UM.Theme.getSize("default_lining").width
ScrollView
{
anchors.fill: parent
anchors.margins: UM.Theme.getSize("default_lining").width
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
TextArea textArea.text: CuraApplication.getTextManager().getChangeLogText()
{ textArea.textFormat: Text.RichText
id: whatsNewTextArea textArea.wrapMode: Text.WordWrap
text: CuraApplication.getTextManager().getChangeLogText() textArea.readOnly: true
textFormat: Text.RichText
wrapMode: Text.WordWrap
readOnly: true
font: UM.Theme.getFont("default")
renderType: Text.NativeRendering
}
}
} }
Cura.PrimaryButton Cura.PrimaryButton