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:
David Rowe 2016-02-23 20:05:16 +13:00
parent 9583b801f6
commit 67b6cafc92

View file

@ -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 != ""
}
*/
}