feat: add back button and update colors
This commit is contained in:
@@ -59,16 +59,6 @@ Rectangle {
|
|||||||
anchors.rightMargin: 5
|
anchors.rightMargin: 5
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
Button {
|
|
||||||
Layout.preferredWidth: 25
|
|
||||||
Layout.preferredHeight: 25
|
|
||||||
|
|
||||||
icon.name: "back"
|
|
||||||
icon.source: "icons/x.svg"
|
|
||||||
|
|
||||||
onClicked: root.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
@@ -180,9 +170,21 @@ Rectangle {
|
|||||||
|
|
||||||
visible: root.gameService.state != GameService.GameState.Ended
|
visible: root.gameService.state != GameService.GameState.Ended
|
||||||
|
|
||||||
|
buttonColor: UIStyle.colorRed
|
||||||
|
textColor: "white"
|
||||||
text: "End"
|
text: "End"
|
||||||
|
|
||||||
onClicked: root.gameService.end()
|
onClicked: root.gameService.end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
|
visible: root.gameService.state == GameService.GameState.Ended
|
||||||
|
|
||||||
|
text: "Back"
|
||||||
|
|
||||||
|
onClicked: root.close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user