mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:29:02 +08:00
Update ReadOnlyTextArea import
Update ReadOnlyTextArea style (It's not really read only 🤔)
CURA-8979
This commit is contained in:
parent
f9814520f7
commit
59b7d20f75
@ -9,8 +9,6 @@ import QtQuick.Layouts 1.3
|
|||||||
import UM 1.5 as UM
|
import UM 1.5 as UM
|
||||||
import Cura 1.0 as Cura
|
import Cura 1.0 as Cura
|
||||||
|
|
||||||
import ".." // Access to ReadOnlyTextArea.qml
|
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
@ -479,7 +477,7 @@ Item
|
|||||||
height: parent.rowHeight
|
height: parent.rowHeight
|
||||||
text: catalog.i18nc("@label", "Description")
|
text: catalog.i18nc("@label", "Description")
|
||||||
}
|
}
|
||||||
ReadOnlyTextArea
|
Cura.ReadOnlyTextArea
|
||||||
{
|
{
|
||||||
text: properties.description
|
text: properties.description
|
||||||
width: informationPage.width
|
width: informationPage.width
|
||||||
@ -498,7 +496,7 @@ Item
|
|||||||
text: catalog.i18nc("@label", "Adhesion Information")
|
text: catalog.i18nc("@label", "Adhesion Information")
|
||||||
}
|
}
|
||||||
|
|
||||||
ReadOnlyTextArea
|
Cura.ReadOnlyTextArea
|
||||||
{
|
{
|
||||||
text: properties.adhesion_info
|
text: properties.adhesion_info
|
||||||
width: informationPage.width
|
width: informationPage.width
|
||||||
|
@ -23,13 +23,10 @@ ScrollView
|
|||||||
enabled: !base.readOnly
|
enabled: !base.readOnly
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
|
||||||
background: Rectangle
|
background: UM.UnderlineBackground { id: backgroundRectangle }
|
||||||
{
|
|
||||||
radius: UM.Theme.getSize("setting_control_radius").width
|
|
||||||
color: textArea.enabled ? UM.Theme.getColor("setting_control") : UM.Theme.getColor("setting_control_disabled")
|
|
||||||
}
|
|
||||||
|
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
|
selectionColor: UM.Theme.getColor("text_selection")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
|
|
||||||
Keys.onReturnPressed: base.editingFinished()
|
Keys.onReturnPressed: base.editingFinished()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user