WIP more UI wip

This commit is contained in:
Aurelien Vaillant
2024-08-12 16:53:09 +02:00
parent f80433ebe5
commit f53cb56669
4 changed files with 161 additions and 60 deletions
+12 -29
View File
@@ -1,36 +1,19 @@
import QtQuick 2.5
import fbx.application 1.0
import "Views" 1.0
Application {
Image {
source: "icon.png"
}
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"
}
text: "Connect to Jellifyn server"
}
GridView {
model: ViewLogin {}
delegate: Column {
Text { text: name; anchors.horizontalCenter: parent.horizontalCenter }
}
}
}