add documentation, remove uneeded changes of drawertype

This commit is contained in:
Matthew Schwiebert 2023-10-02 15:40:25 -04:00
parent a6134ca10f
commit 5bfc581ad2
2 changed files with 15 additions and 7 deletions

View file

@ -50,22 +50,24 @@ Drawer {
if (PageController.getInitialPageNavigationBarColor() !== 0xFF1C1D21) {
PageController.updateNavigationBarColor(0xFF1C1D21)
}
}
onOpened: {
isOpened = true
if (needCloseButton) {
PageController.drawerOpen()
}
}
onClosed: {
isOpened = false
onAboutToHide: {
if (needCloseButton) {
PageController.drawerClose()
}
}
onOpened: {
isOpened = true
}
onClosed: {
isOpened = false
var initialPageNavigationBarColor = PageController.getInitialPageNavigationBarColor()
if (initialPageNavigationBarColor !== 0xFF1C1D21) {