Set placeholder text color for text field and area

This commit is contained in:
miruka
2019-09-07 17:00:12 -04:00
parent c5bd5a1eb1
commit 31e1daa046
4 changed files with 8 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ ScrollView {
font.pixelSize: theme.fontSize.normal
font.pointSize: -1
placeholderTextColor: theme.controls.textArea.placeholderText
color: theme.controls.textArea.text
background: Rectangle {
id: textAreaBackground

View File

@@ -24,6 +24,7 @@ TextField {
property color focusedBorderColor: _tf.focusedBorder
property alias radius: textFieldBackground.radius
placeholderTextColor: _tf.placeholderText
color: activeFocus ? _tf.focusedText : _tf.text
background: Rectangle {