Skip to content

Commit

Permalink
fixed the size of the drawer close button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Sep 17, 2023
1 parent 8a3bdf1 commit 8965b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions client/ui/qml/Controls2/DrawerType.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions client/ui/qml/Controls2/TopCloseButtonType.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Popup {

modal: false
closePolicy: Popup.NoAutoClose
width: 40
height: 40
padding: 4

visible: false
Expand All @@ -25,9 +23,6 @@ Popup {
image: "qrc:/images/svg/close_black_24dp.svg"
imageColor: "#D7D8DB"

implicitWidth: 32
implicitHeight: 32

onClicked: {
PageController.goToDrawerRootPage()
}
Expand Down

0 comments on commit 8965b1f

Please sign in to comment.