mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:45:59 +08:00
Move background to ScrollView for GcodeTextArea
This commit is contained in:
parent
5280ec4af5
commit
d1805d34be
@ -53,19 +53,6 @@ UM.TooltipArea
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
TextArea
|
|
||||||
{
|
|
||||||
id: gcodeTextArea
|
|
||||||
|
|
||||||
hoverEnabled: true
|
|
||||||
selectByMouse: true
|
|
||||||
|
|
||||||
text: (propertyProvider.properties.value) ? propertyProvider.properties.value : ""
|
|
||||||
font: UM.Theme.getFont("fixed")
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
color: UM.Theme.getColor("text")
|
|
||||||
wrapMode: TextEdit.NoWrap
|
|
||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: UM.Theme.getColor("main_background")
|
color: UM.Theme.getColor("main_background")
|
||||||
@ -85,6 +72,19 @@ UM.TooltipArea
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TextArea
|
||||||
|
{
|
||||||
|
id: gcodeTextArea
|
||||||
|
|
||||||
|
hoverEnabled: true
|
||||||
|
selectByMouse: true
|
||||||
|
|
||||||
|
text: (propertyProvider.properties.value) ? propertyProvider.properties.value : ""
|
||||||
|
font: UM.Theme.getFont("fixed")
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
color: UM.Theme.getColor("text")
|
||||||
|
wrapMode: TextEdit.NoWrap
|
||||||
|
|
||||||
onActiveFocusChanged:
|
onActiveFocusChanged:
|
||||||
{
|
{
|
||||||
if (!activeFocus)
|
if (!activeFocus)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user