From 2effa32549d732eade4caab93672ea08931ce47a Mon Sep 17 00:00:00 2001 From: Poleric Date: Fri, 5 Jun 2026 01:40:00 +0800 Subject: [PATCH] feat: add back button and update colors --- .../gui/InventoryWars/OngoingView.qml | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/inventory_wars/gui/InventoryWars/OngoingView.qml b/src/inventory_wars/gui/InventoryWars/OngoingView.qml index 0968d60..ae8f4dc 100644 --- a/src/inventory_wars/gui/InventoryWars/OngoingView.qml +++ b/src/inventory_wars/gui/InventoryWars/OngoingView.qml @@ -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() + } } } \ No newline at end of file