fixed the size of the drawer close button

This commit is contained in:
vladimir.kuznetsov 2023-09-17 23:21:00 +05:00
parent 8a3bdf136b
commit 8965b1fbba
2 changed files with 3 additions and 9 deletions

View file

@ -48,20 +48,19 @@ Drawer {
if (PageController.getInitialPageNavigationBarColor() !== 0xFF1C1D21) {
PageController.updateNavigationBarColor(0xFF1C1D21)
}
}
onOpened: {
if (needCloseButton) {
PageController.drawerOpen()
}
}
onClosed: {
onAboutToHide: {
if (needCloseButton) {
PageController.drawerClose()
}
}
onClosed: {
var initialPageNavigationBarColor = PageController.getInitialPageNavigationBarColor()
if (initialPageNavigationBarColor !== 0xFF1C1D21) {
PageController.updateNavigationBarColor(initialPageNavigationBarColor)

View file

@ -7,8 +7,6 @@ Popup {
modal: false
closePolicy: Popup.NoAutoClose
width: 40
height: 40
padding: 4
visible: false
@ -25,9 +23,6 @@ Popup {
image: "qrc:/images/svg/close_black_24dp.svg"
imageColor: "#D7D8DB"
implicitWidth: 32
implicitHeight: 32
onClicked: {
PageController.goToDrawerRootPage()
}