adjust lobby

This commit is contained in:
notify 2023-03-20 15:25:23 +08:00
parent 139464be14
commit 9ec500f82c
2 changed files with 28 additions and 15 deletions

View File

@ -112,6 +112,8 @@ Item {
Button {
text: qsTr("Join Server")
Layout.fillWidth: true
display: AbstractButton.TextBesideIcon
icon.name: "go-next"
enabled: passwordEdit.text !== ""
onClicked: {
config.serverAddr = server_addr.editText;

View File

@ -172,10 +172,12 @@ Item {
*/
}
RowLayout {
anchors.right: parent.right
anchors.bottom: parent.bottom
Button {
anchors.bottom: buttonRow.top
anchors.right: parent.right
width: 120
display: AbstractButton.TextUnderIcon
icon.name: "media-playback-start"
text: Backend.translate("Create Room")
onClicked: {
lobby_dialog.source = "LobbyElement/CreateRoom.qml";
@ -183,6 +185,11 @@ Item {
config.observing = false;
}
}
RowLayout {
id: buttonRow
anchors.right: parent.right
anchors.bottom: parent.bottom
Button {
text: Backend.translate("Generals Overview")
onClicked: {
@ -212,15 +219,19 @@ Item {
mainStack.push(mainWindow.aboutPage);
}
}
}
Button {
anchors.right: parent.right
text: Backend.translate("Exit Lobby")
display: AbstractButton.TextBesideIcon
icon.name: "application-exit"
onClicked: {
toast.show("Goodbye.");
Backend.quitLobby();
mainStack.pop();
}
}
}
Drawer {
id: lobby_drawer