Skip to content

Commit

Permalink
qml: use NavigationBar2 in SettingsBlockClockDisplayMode
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Sep 12, 2023
1 parent a8cbe34 commit b5b73b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
17 changes: 13 additions & 4 deletions src/qml/pages/settings/SettingsBlockClockDisplayMode.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("Block clock display mode")
}
}
BlockClockDisplayMode {
width: Math.min(parent.width, 450)
Expand Down
13 changes: 2 additions & 11 deletions src/qml/pages/settings/SettingsDisplay.qml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,8 @@ Item {
Component {
id: blockclocksize_page
SettingsBlockClockDisplayMode {
navLeftDetail: NavButton {
iconSource: "image://images/caret-left"
text: qsTr("Back")
onClicked: {
nodeSettingsView.pop()
}
}
navMiddleDetail: Header {
headerBold: true
headerSize: 18
header: qsTr("Block clock display mode")
onBackClicked: {
nodeSettingsView.pop()
}
}
}
Expand Down

0 comments on commit b5b73b0

Please sign in to comment.