37 lines
982 B
QML
37 lines
982 B
QML
import QtQuick 2.5
|
|
import fbx.application 1.0
|
|
|
|
Application {
|
|
Text {
|
|
id: title
|
|
focus: true
|
|
anchors.centerIn: parent
|
|
text: "Launch Jellyfin"
|
|
color: "white"
|
|
font.pixelSize: 50
|
|
states: [
|
|
State {
|
|
name: "rouge";
|
|
PropertyChanges {target: title; color: "red" }
|
|
},
|
|
State {
|
|
name: "bleu";
|
|
PropertyChanges {target: title; color: "blue" }
|
|
}
|
|
]
|
|
transitions: Transition {
|
|
SequentialAnimation {
|
|
ColorAnimation { duration: 500 }
|
|
}
|
|
}
|
|
Keys.onPressed: {
|
|
if(event.key == Qt.Key_Up)
|
|
title.state = "rouge"
|
|
else if(event.key == Qt.Key_Down)
|
|
title.state = "bleu"
|
|
else if(event.key == Qt.Key_Return)
|
|
title.color = "purple"
|
|
}
|
|
}
|
|
}
|