Skip to content

Commit

Permalink
Settings: Replace close with back button
Browse files Browse the repository at this point in the history
This is more idiomatic on desktop.
  • Loading branch information
vimpostor committed Apr 2, 2024
1 parent f884c5b commit fd66641
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/qml/Settings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ import Backend
Page {
id: settings
title: "Settings"
IconButton {
id: closeButton
anchors.left: parent.left
anchors.top: parent.top
ico.name: "arrow_back"
onClicked: pageStack.clear();
}
TabBar {
id: bar
anchors.left: parent.left
anchors.right: closeButton.left
anchors.left: closeButton.right
anchors.right: parent.right
TabButton {
text: "General"
}
TabButton {
text: "Item spawn probabilities"
}
}
IconButton {
id: closeButton
anchors.right: parent.right
anchors.top: parent.top
ico.name: "close"
onClicked: pageStack.clear();
}
StackLayout {
anchors {top: bar.bottom; left: parent.left; right: parent.right; bottom: parent.bottom}
currentIndex: bar.currentIndex
Expand Down

0 comments on commit fd66641

Please sign in to comment.