Skip to content

Commit

Permalink
qml: use NavigationBar2 in SettingsTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Sep 12, 2023
1 parent d3e3c0c commit e0376f8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
13 changes: 2 additions & 11 deletions src/qml/pages/settings/SettingsDisplay.qml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,8 @@ Item {
Component {
id: theme_page
SettingsTheme {
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
nodeSettingsView.pop()
}
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Theme")
onBackClicked: {
nodeSettingsView.pop()
}
}
}
Expand Down
17 changes: 13 additions & 4 deletions src/qml/pages/settings/SettingsTheme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,26 @@ import "../../controls"
import "../../components"

Page {
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("Theme")
}
}
ThemeSettings {
width: Math.min(parent.width, 450)
Expand Down

0 comments on commit e0376f8

Please sign in to comment.