Set placeholder text color for text field and area
This commit is contained in:
parent
c5bd5a1eb1
commit
31e1daa046
1
TODO.md
1
TODO.md
|
@ -26,7 +26,6 @@
|
||||||
- Verify big avatars aren't downloaded uselessly
|
- Verify big avatars aren't downloaded uselessly
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
- Set an explicit placeholder text color for text field/area
|
|
||||||
- Show error if uploading avatar fails or file is corrupted
|
- Show error if uploading avatar fails or file is corrupted
|
||||||
- Way to open context menus without a right mouse button
|
- Way to open context menus without a right mouse button
|
||||||
- Room header descriptions: styled text
|
- Room header descriptions: styled text
|
||||||
|
|
|
@ -30,6 +30,7 @@ ScrollView {
|
||||||
font.pixelSize: theme.fontSize.normal
|
font.pixelSize: theme.fontSize.normal
|
||||||
font.pointSize: -1
|
font.pointSize: -1
|
||||||
|
|
||||||
|
placeholderTextColor: theme.controls.textArea.placeholderText
|
||||||
color: theme.controls.textArea.text
|
color: theme.controls.textArea.text
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
id: textAreaBackground
|
id: textAreaBackground
|
||||||
|
|
|
@ -24,6 +24,7 @@ TextField {
|
||||||
property color focusedBorderColor: _tf.focusedBorder
|
property color focusedBorderColor: _tf.focusedBorder
|
||||||
property alias radius: textFieldBackground.radius
|
property alias radius: textFieldBackground.radius
|
||||||
|
|
||||||
|
placeholderTextColor: _tf.placeholderText
|
||||||
color: activeFocus ? _tf.focusedText : _tf.text
|
color: activeFocus ? _tf.focusedText : _tf.text
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
|
@ -152,12 +152,14 @@ controls:
|
||||||
color focusedBorder: colors.accentBackground
|
color focusedBorder: colors.accentBackground
|
||||||
color errorBorder: colors.negativeBackground
|
color errorBorder: colors.negativeBackground
|
||||||
|
|
||||||
color text: colors.text
|
color text: colors.text
|
||||||
color focusedText: colors.text
|
color focusedText: colors.text
|
||||||
|
color placeholderText: colors.dimText
|
||||||
|
|
||||||
textArea:
|
textArea:
|
||||||
color background: colors.inputBackground
|
color background: colors.inputBackground
|
||||||
color text: colors.text
|
color text: colors.text
|
||||||
|
color placeholderText: controls.textField.placeholderText
|
||||||
|
|
||||||
toolTip:
|
toolTip:
|
||||||
int delay: 500
|
int delay: 500
|
||||||
|
|
Loading…
Reference in New Issue
Block a user