mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 14:53:14 +08:00
Use ScrollableTextArea in whats new page
CURA-6057
This commit is contained in:
parent
4f1282df04
commit
ac1b1a9902
@ -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"
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
|
||||||
|
|
||||||
ScrollView
|
textArea.text: CuraApplication.getTextManager().getChangeLogText()
|
||||||
{
|
textArea.textFormat: Text.RichText
|
||||||
anchors.fill: parent
|
textArea.wrapMode: Text.WordWrap
|
||||||
anchors.margins: UM.Theme.getSize("default_lining").width
|
textArea.readOnly: true
|
||||||
|
|
||||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
|
||||||
|
|
||||||
TextArea
|
|
||||||
{
|
|
||||||
id: whatsNewTextArea
|
|
||||||
text: CuraApplication.getTextManager().getChangeLogText()
|
|
||||||
textFormat: Text.RichText
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
readOnly: true
|
|
||||||
font: UM.Theme.getFont("default")
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.PrimaryButton
|
Cura.PrimaryButton
|
||||||
|
Loading…
x
Reference in New Issue
Block a user