Skip to content

Commit

Permalink
qml: use NavigationBar2 in SettingsProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Sep 12, 2023
1 parent e0376f8 commit 3881dbc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
13 changes: 2 additions & 11 deletions src/qml/pages/settings/SettingsConnection.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,8 @@ Item {
detailItem: ConnectionSettings {}
}
SettingsProxy {
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
connectionSwipe.decrementCurrentIndex()
}
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Proxy Settings")
onBackClicked: {
connectionSwipe.decrementCurrentIndex()
}
}
}
Expand Down
19 changes: 14 additions & 5 deletions src/qml/pages/settings/SettingsProxy.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,27 @@ import "../../controls"
import "../../components"

Page {
id: proxy_settings
property alias navLeftDetail: navbar.leftDetail
property alias navMiddleDetail: navbar.middleDetail
signal backClicked

id: root

background: null
implicitWidth: 450
leftPadding: 20
rightPadding: 20
topPadding: 30

header: NavigationBar {
id: navbar
header: NavigationBar2 {
leftItem: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: root.backClicked()
}
centerItem: Header {
headerBold: true
headerSize: 18
header: qsTr("Proxy Settings")
}
}
ProxySettings {
width: Math.min(parent.width, 450)
Expand Down

0 comments on commit 3881dbc

Please sign in to comment.