much nicer preview
This commit is contained in:
1 parent
d13bfda1f9
commit
fbe56658b6
8 files changed
+311
-26
No files matched your search
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user