This commit is contained in:
zhuzihcu 2023-05-17 18:24:11 +08:00
parent a89d36fd14
commit ac0b0aaaa9
2 changed files with 10 additions and 2 deletions

View File

@ -94,8 +94,7 @@ CustomWindow {
FluNavigationView{
id:nav_view
anchors{
top: title_bar.bottom
topMargin: -20
top: parent.top
left: parent.left
right: parent.right
bottom: parent.bottom
@ -121,6 +120,8 @@ CustomWindow {
ItemsOriginal.navigationView = nav_view
ItemsFooter.navigationView = nav_view
nav_view.setCurrentIndex(0)
setHitTestVisible(nav_view.backButton())
setHitTestVisible(nav_view.navButton())
}
}
}

View File

@ -461,6 +461,7 @@ Item {
height:parent.height
spacing: 0
FluIconButton{
id:btn_back
iconSource: FluentIcons.ChromeBack
Layout.leftMargin: 5
Layout.preferredWidth: 30
@ -922,4 +923,10 @@ Item {
}
}
}
function backButton(){
return btn_back
}
function navButton(){
return btn_nav
}
}