mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +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.pointSize: hifi.fontSizes.textFieldInput
|
||||
height: implicitHeight + 4 // Make surrounding box higher so that highlight is vertically centered.
|
||||
placeholderText: textField.label // Instead of separate label (see below).
|
||||
|
||||
style: TextFieldStyle {
|
||||
textColor: textField.colorScheme == hifi.colorSchemes.light
|
||||
|
@ -43,13 +44,16 @@ TextField {
|
|||
padding.right: hifi.dimensions.textPadding
|
||||
}
|
||||
|
||||
/*
|
||||
// Separate label instead of placeholderText.
|
||||
RalewaySemibold {
|
||||
text: textField.label
|
||||
size: hifi.fontSizes.inputLabel
|
||||
color: hifi.colors.lightGray
|
||||
color: hifi.colors.lightGrayText
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.top
|
||||
anchors.bottomMargin: 4
|
||||
visible: label != ""
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue