fix(TextArea): fix selecting text in a TextArea and placeholder color
This commit is contained in:
parent
2c3449e676
commit
7def4b8630
|
@ -110,7 +110,6 @@ ModalPopup {
|
|||
anchors.top: nameInput.bottom
|
||||
anchors.topMargin: Style.current.bigPadding
|
||||
customHeight: 88
|
||||
textField.selectByMouse: true
|
||||
textField.wrapMode: TextEdit.Wrap
|
||||
|
||||
property bool isValid: false
|
||||
|
|
|
@ -52,6 +52,7 @@ Item {
|
|||
id: textArea
|
||||
text: ""
|
||||
font.pixelSize: 15
|
||||
selectByMouse: true
|
||||
wrapMode: Text.WrapAnywhere
|
||||
placeholderText: inputBox.placeholderText
|
||||
anchors.rightMargin: Style.current.smallPadding
|
||||
|
@ -61,19 +62,11 @@ Item {
|
|||
anchors.fill: parent
|
||||
font.family: Style.current.fontRegular.name
|
||||
color: Style.current.textColor
|
||||
placeholderTextColor: Style.current.darkGrey
|
||||
placeholderTextColor: Style.current.secondaryText
|
||||
selectionColor: Style.current.primarySelectionColor
|
||||
|
||||
Keys.onPressed: inputBox.keyPressed(event)
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
textArea.forceActiveFocus(Qt.MouseFocusReason)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
|
|
Loading…
Reference in New Issue