Skip to content
Snippets Groups Projects
Commit d06b6431 authored by Pouchet Pierre's avatar Pouchet Pierre
Browse files

Correction taille écran + correction back key

parent 096d011e
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......
......@@ -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 {
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment