Files
2026-09-23 13:53:17 -04:00

23 lines
498 B
QML

import QtQuick
// A short line of text that names a key and what it does.
Text {
id: root
required property Theme theme
required property string hint
required property bool shown
color: root.theme.labelColor
font.pixelSize: root.theme.hintSize
text: root.hint
opacity: root.shown && root.hint.length > 0 ? 1 : 0
visible: root.opacity > 0
Behavior on opacity {
NumberAnimation {
duration: root.theme.hintFadeDuration
}
}
}