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