From bbad3b5fcb3a85aa8ee9c5af2679ebf2e8a8731fa7e0b8e83d6d6dcf29458dc9 Mon Sep 17 00:00:00 2001 From: linuxero Date: Wed, 6 Nov 2024 17:22:22 +0100 Subject: [PATCH] Layout alignment and phoney start page with margins --- gui/Dashboard.qml | 2 ++ gui/TopBar.qml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/Dashboard.qml b/gui/Dashboard.qml index 0c2e90b..f633c1e 100644 --- a/gui/Dashboard.qml +++ b/gui/Dashboard.qml @@ -5,10 +5,12 @@ import QtQuick.Layouts ColumnLayout { anchors.top: TopBar.bottom + Rectangle { color: "blue" Layout.fillHeight: true Layout.fillWidth: true + Layout.bottomMargin: 9 } } diff --git a/gui/TopBar.qml b/gui/TopBar.qml index 02861d8..970affa 100644 --- a/gui/TopBar.qml +++ b/gui/TopBar.qml @@ -31,7 +31,10 @@ import QtQuick.Layouts flat: true text: qsTr("Dashboard") implicitWidth: dashBoard.implicitContentWidth + 10 - + onClicked: + { + appLoader.source = "Dashboard.qml" + } }