1
0

feat: add back button and update colors

This commit is contained in:
2026-06-05 01:40:00 +08:00
parent a72155d64a
commit 2effa32549
@@ -59,16 +59,6 @@ Rectangle {
anchors.rightMargin: 5
Layout.alignment: Qt.AlignVCenter
Button {
Layout.preferredWidth: 25
Layout.preferredHeight: 25
icon.name: "back"
icon.source: "icons/x.svg"
onClicked: root.close()
}
Item {
Layout.fillWidth: true
}
@@ -180,9 +170,21 @@ Rectangle {
visible: root.gameService.state != GameService.GameState.Ended
buttonColor: UIStyle.colorRed
textColor: "white"
text: "End"
onClicked: root.gameService.end()
}
Button {
Layout.alignment: Qt.AlignHCenter
visible: root.gameService.state == GameService.GameState.Ended
text: "Back"
onClicked: root.close()
}
}
}