Base jellyfin freebox application
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user