added swipe up for menu on PageHome

This commit is contained in:
vladimir.kuznetsov 2023-09-06 13:37:37 +05:00
parent 7fc4ea0c68
commit 4ab006f065
28 changed files with 90 additions and 85 deletions

View file

@ -26,11 +26,15 @@ PageType {
property string defaultServerHostName: ServersModel.defaultServerHostName
property string defaultContainerName: ContainersModel.defaultContainerName
ConnectButton {
Item {
anchors.top: parent.top
anchors.bottom: buttonBackground.top
anchors.right: parent.right
anchors.left: parent.left
ConnectButton {
anchors.centerIn: parent
}
}
Connections {
@ -125,6 +129,9 @@ PageType {
DrawerType {
id: menu
interactive: true
dragMargin: buttonBackground.height + 56 // page start tabBar height
width: parent.width
height: parent.height * 0.9
@ -320,7 +327,7 @@ PageType {
onClicked: function() {
ServersModel.currentlyProcessedIndex = index
goToPage(PageEnum.PageSettingsServerInfo)
PageController.goToPage(PageEnum.PageSettingsServerInfo)
menu.visible = false
}
}