From 479036f6d7d0805c8c4721be2b81b5e6c1d9e078 Mon Sep 17 00:00:00 2001
From: amassies <alexandre.massies@etu.ec-lyon.fr>
Date: Mon, 31 Mar 2025 10:02:04 +0200
Subject: [PATCH] anchors and margins

---
 Motus/Main.qml | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/Motus/Main.qml b/Motus/Main.qml
index f275be5..e5f2ade 100644
--- a/Motus/Main.qml
+++ b/Motus/Main.qml
@@ -121,11 +121,8 @@ Window {
 
         Row {
             id: main_row
-            width: 1800
-            height: 900
-            anchors.verticalCenter: parent.verticalCenter
+            anchors.fill: parent
             spacing: 150
-            anchors.horizontalCenter: parent.horizontalCenter
 
             Rectangle {
                 id: rectangle_buttons
@@ -133,13 +130,15 @@ Window {
                 height: 850
                 color: "#323232"
                 border.width: 0
+                anchors.verticalCenter: parent.verticalCenter
+                anchors.left: parent.left
+                anchors.leftMargin: 0.05*Window.width
+                anchors.verticalCenterOffset: 20
 
                 Column {
                     id: column_buttons
                     width: 400
                     height: 850
-                    anchors.verticalCenter: parent.verticalCenter
-                    anchors.horizontalCenter: parent.horizontalCenter
                     spacing: 20
 
                     Choosebutton {
@@ -260,14 +259,14 @@ Window {
                 height: 900
                 color: "#323232"
                 border.width: 0
+                anchors.verticalCenter: parent.verticalCenter
+                anchors.horizontalCenter: parent.horizontalCenter
 
                 Column {
                     id: center_column
                     width: 700
                     height: 900
-                    anchors.verticalCenter: parent.verticalCenter
                     spacing: 30
-                    anchors.horizontalCenter: parent.horizontalCenter
 
                     Rectangle {
                         id: rectangle_titre
@@ -411,6 +410,9 @@ Window {
                 height: 850
                 color: "#323232"
                 border.width: 0
+                anchors.verticalCenter: parent.verticalCenter
+                anchors.right: parent.right
+                anchors.rightMargin: 0.05*Window.width
 
                 Row {
                     y: 50
-- 
GitLab