mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
39 lines
993 B
QML
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
|
|
}
|
|
}
|
|
|
|
|