mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 13:33:30 +02:00
36 lines
877 B
QML
36 lines
877 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.pointSize: hifi.fonts.fontSize
|
|
|
|
/*
|
|
Original.Rectangle {
|
|
// Render the rectangle as background
|
|
z: -1
|
|
anchors.fill: parent
|
|
color: hifi.colors.inputBackground
|
|
}
|
|
*/
|
|
Text {
|
|
anchors.fill: parent
|
|
font.pointSize: parent.font.pointSize
|
|
font.family: parent.font.family
|
|
verticalAlignment: parent.verticalAlignment
|
|
horizontalAlignment: parent.horizontalAlignment
|
|
text: root.helperText
|
|
color: hifi.colors.hintText
|
|
visible: !root.text
|
|
}
|
|
}
|
|
|
|
|