From 4bb7ec2ba04792e97dd6781cdc02fdd4d7ae123c Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Tue, 13 Aug 2024 11:26:45 +0200 Subject: [PATCH] Split the main view on 2 --- Jellyfin.qml | 50 +++++++++++++++++++++++------- Views/{ViewLogin.qml => Login.qml} | 0 manifest.json | 2 +- 3 files changed, 40 insertions(+), 12 deletions(-) rename Views/{ViewLogin.qml => Login.qml} (100%) diff --git a/Jellyfin.qml b/Jellyfin.qml index 712fc0a..f1d574e 100644 --- a/Jellyfin.qml +++ b/Jellyfin.qml @@ -1,19 +1,47 @@ import QtQuick 2.5 import fbx.application 1.0 -import "Views" 1.0 +import "Views" as View Application { - Image { - source: "icon.png" - } - Text { - text: "Connect to Jellifyn server" - } + Column { + anchors.fill: parent + spacing: 10 - GridView { - model: ViewLogin {} - delegate: Column { - Text { text: name; anchors.horizontalCenter: parent.horizontalCenter } + Rectangle { + // Logo left section + width: parent.width / 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 } + } + } + */ + } } } diff --git a/Views/ViewLogin.qml b/Views/Login.qml similarity index 100% rename from Views/ViewLogin.qml rename to Views/Login.qml diff --git a/manifest.json b/manifest.json index c88790c..4d59992 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "description": "Jellyfin for Freebox", "icon": "icon.png", "capabilities": { - "net_wan": "required", + "net_wan": "required" }, "entryPoints": { "main": {