mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: move back button back to the left and center text
The top bars on the main page and dive details should be the same height and keep the same layout. [Dirk Hohndel: refactored Joakim's patch to work on top of what was already in master] Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a09cfb8e98
commit
fc746c2129
2 changed files with 10 additions and 7 deletions
|
@ -49,18 +49,11 @@ Item {
|
||||||
anchors.leftMargin: prefsButton.height * 0.1
|
anchors.leftMargin: prefsButton.height * 0.1
|
||||||
anchors.right: topBar.right
|
anchors.right: topBar.right
|
||||||
anchors.rightMargin: prefsButton.height * 0.1
|
anchors.rightMargin: prefsButton.height * 0.1
|
||||||
Text {
|
|
||||||
text: qsTr("Subsurface mobile")
|
|
||||||
font.pointSize: 18
|
|
||||||
font.bold: true
|
|
||||||
color: "white"
|
|
||||||
}
|
|
||||||
Button {
|
Button {
|
||||||
id: backButton
|
id: backButton
|
||||||
Layout.maximumHeight: prefsButton.height
|
Layout.maximumHeight: prefsButton.height
|
||||||
Layout.minimumHeight: prefsButton.height
|
Layout.minimumHeight: prefsButton.height
|
||||||
Layout.preferredWidth: Screen.width * 0.1
|
Layout.preferredWidth: Screen.width * 0.1
|
||||||
anchors.right: parent.right
|
|
||||||
text: "\u2190"
|
text: "\u2190"
|
||||||
style: ButtonStyle {
|
style: ButtonStyle {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
@ -88,6 +81,14 @@ Item {
|
||||||
stackView.pop();
|
stackView.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Text {
|
||||||
|
text: qsTr("Subsurface mobile")
|
||||||
|
font.pointSize: 18
|
||||||
|
font.bold: true
|
||||||
|
color: "white"
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GridLayout {
|
GridLayout {
|
||||||
|
|
|
@ -81,6 +81,8 @@ ApplicationWindow {
|
||||||
font.pointSize: 18
|
font.pointSize: 18
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: "white"
|
color: "white"
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
id: prefsButton
|
id: prefsButton
|
||||||
|
|
Loading…
Add table
Reference in a new issue