diff --git a/Motus/BackKey.qml b/Motus/BackKey.qml index e865df2fb4f256881138421bad65db23dbb85069..c9e0784acb18ed1f6b336d4399e8d5fd39e6a05e 100644 --- a/Motus/BackKey.qml +++ b/Motus/BackKey.qml @@ -2,8 +2,8 @@ import QtQuick Item { id: _item - width: 150 - height: 70 + width: 100 + height: 60 property alias imageSource: image.source Rectangle { id: rectangle @@ -15,9 +15,9 @@ Item { id: image x: 0 y: 0 - width: 150 - height: 70 - source: "file:///C:/Users/pierr/OneDrive/Documents/GitHub/momomotus/momomotus/Motus/back_key.png" + width: 100 + height: 60 + source: "back_key.png" fillMode: Image.PreserveAspectFit } } diff --git a/Motus/Main.qml b/Motus/Main.qml index 8e7b8c9e65ab783e76d53df5eea0727bfda3cb9c..1eafbac76012d3231d782217d7c2a3dddd0227ce 100644 --- a/Motus/Main.qml +++ b/Motus/Main.qml @@ -2,7 +2,7 @@ import QtQuick Window { width: Screen.width - height: 1080 + height: Screen.height visible: true visibility: Window.Maximized title: qsTr("Hello World") @@ -12,48 +12,24 @@ Window { x: 0 y: 0 width: Screen.width - height: 1080 + height: Screen.height color: "#323232" focus: true - Bouton { - id: bouton - x: 63 - y: 56 - _textText: "Générer un mot" - MouseArea { - id: mouseArea - x: 0 - y: 0 - width: 400 - height: 200 - onClicked: { - let mot = motusGame.getRandomWord(); - console.log("Mot choisi :", mot); - case3._textText = mot; - onClicked: case3._textColor="#51c3e1"; - } - - - Case { - id: case3 - _textText: "test" - } - } } Choosebutton { id: choosebutton - x: 751 - y: 42 + x: 57 + y: 102 buttonText: "Générer un mot" - - - - + Case { + id: case3 + _textText: "mot test" + } Keys.onPressed: (event) => { @@ -81,8 +57,8 @@ Window { Rectangle { id: rectangle2 - x: 1175 - y: 241 + x: 1144 + y: 89 width: 265 height: 286 color: "#ffffff" @@ -133,22 +109,22 @@ Window { NumberLetterButton { id: numberLetterButton - x: 623 - y: 171 + x: 1163 + y: 421 } Rectangle { id: rectangle1 x: 342 - y: 406 + y: 477 width: 640 height: 280 color: "#323232" radius: 10 border.color: "#ffffff" border.width: 5 - anchors.horizontalCenterOffset: -126 + anchors.horizontalCenterOffset: -27 anchors.horizontalCenter: parent.horizontalCenter Column { @@ -454,8 +430,6 @@ Window { BackKey { id: backKey - width: 100 - height: 60 anchors.verticalCenter: parent.verticalCenter } @@ -463,4 +437,4 @@ Window { } } } -} +