Make the main view functional

This commit is contained in:
Aurelien Vaillant
2024-08-13 15:38:24 +02:00
parent 4bb7ec2ba0
commit 3697258d07
4 changed files with 64 additions and 40 deletions
+16 -31
View File
@@ -3,45 +3,30 @@ import fbx.application 1.0
import "Views" as View
Application {
Column {
// Liste des labels et types
property var fields: [
{label: "Server", type: "text"},
{label: "User", type: "text"},
{label: "Password", type: "password"}
]
Row {
anchors.fill: parent
spacing: 10
Rectangle {
// Logo left section
width: parent.width / 2 - 5
width: parent.width / 3 - 5
height: parent.height
View.Logo {}
}
Rectangle {
width: parent.width / 3 * 2 - 5
height: parent.height
color: "#000B25"
Image {
anchors.centerIn: parent
source: "icon.png"
}
}
Rectangle {
// Grid View section to log user and setup the server link
width: parent.width / 2 - 5
height: parent.height
color: "blue"
Text {
color: "orange"
text: "Connect to Jellyfin"
}
/*
GridView {
anchors.centerIn: parent
width: parent.width; height: parent.height
model: View.Login {}
delegate: Column {
Text { text: name; anchors.horizontalCenter: parent.horizontalCenter }
}
}
*/
View.Login {}
}
}
}