mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:49:12 +02:00
Use placeholder text for Filter field instead of separate label
Also fixes color of separate label if that is reinstated at some time.
This commit is contained in:
parent
9583b801f6
commit
67b6cafc92
1 changed files with 5 additions and 1 deletions
|
@ -24,6 +24,7 @@ TextField {
|
||||||
font.family: firaSansSemiBold.name
|
font.family: firaSansSemiBold.name
|
||||||
font.pointSize: hifi.fontSizes.textFieldInput
|
font.pointSize: hifi.fontSizes.textFieldInput
|
||||||
height: implicitHeight + 4 // Make surrounding box higher so that highlight is vertically centered.
|
height: implicitHeight + 4 // Make surrounding box higher so that highlight is vertically centered.
|
||||||
|
placeholderText: textField.label // Instead of separate label (see below).
|
||||||
|
|
||||||
style: TextFieldStyle {
|
style: TextFieldStyle {
|
||||||
textColor: textField.colorScheme == hifi.colorSchemes.light
|
textColor: textField.colorScheme == hifi.colorSchemes.light
|
||||||
|
@ -43,13 +44,16 @@ TextField {
|
||||||
padding.right: hifi.dimensions.textPadding
|
padding.right: hifi.dimensions.textPadding
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// Separate label instead of placeholderText.
|
||||||
RalewaySemibold {
|
RalewaySemibold {
|
||||||
text: textField.label
|
text: textField.label
|
||||||
size: hifi.fontSizes.inputLabel
|
size: hifi.fontSizes.inputLabel
|
||||||
color: hifi.colors.lightGray
|
color: hifi.colors.lightGrayText
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.bottom: parent.top
|
anchors.bottom: parent.top
|
||||||
anchors.bottomMargin: 4
|
anchors.bottomMargin: 4
|
||||||
visible: label != ""
|
visible: label != ""
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue