overte-Armored-Dragon/interface/resources/qml/controls/TextInput.qml
2016-08-04 11:55:31 -07:00

39 lines
993 B
QML

import QtQuick 2.3 as Original
import "../styles"
import "."
Original.TextInput {
id: root
HifiConstants { id: hifi }
property string helperText
height: hifi.layout.rowHeight
clip: true
color: hifi.colors.text
verticalAlignment: Original.TextInput.AlignVCenter
font.family: hifi.fonts.fontFamily
font.pixelSize: hifi.fonts.pixelSize
property int helperPixelSize: font.pixelSize
property bool helperItalic: false
/*
Original.Rectangle {
// Render the rectangle as background
z: -1
anchors.fill: parent
color: hifi.colors.inputBackground
}
*/
Text {
anchors.fill: parent
font.pixelSize: helperPixelSize
font.italic: helperItalic
font.family: parent.font.family
verticalAlignment: parent.verticalAlignment
horizontalAlignment: parent.horizontalAlignment
text: root.helperText
color: hifi.colors.hintText
visible: !root.text
}
}