diff options
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qml/TopBar.qml | 25 | ||||
-rw-r--r-- | qt-mobile/qml/icons/main-menu.png | bin | 0 -> 112 bytes | |||
-rw-r--r-- | qt-mobile/qml/icons/main-menu.svg | 1 | ||||
-rw-r--r-- | qt-mobile/qml/mobile-resources.qrc | 1 |
4 files changed, 27 insertions, 0 deletions
diff --git a/qt-mobile/qml/TopBar.qml b/qt-mobile/qml/TopBar.qml index 5ebf3b390..e52909bca 100644 --- a/qt-mobile/qml/TopBar.qml +++ b/qt-mobile/qml/TopBar.qml @@ -25,6 +25,31 @@ Rectangle { anchors.right: topPart.right anchors.rightMargin: MobileComponents.Units.smallSpacing Item { + id: mainMenu + anchors.left: parent.left + Layout.preferredHeight: mainMenuIcon.height + width: mainMenuIcon.width + Image { + id: mainMenuIcon + source: "qrc:/qml/main-menu.png" + width: MobileComponents.Units.gridUnit + height: width + anchors { + top: parent.top + topMargin: MobileComponents.Units.smallSpacing * -1 + leftMargin: MobileComponents.Units.smallSpacing + + } + } + MouseArea { + height: parent.height + width: parent.width + onClicked: { + globalDrawer.open() + } + } + } + Item { Layout.preferredHeight: subsurfaceLogo.height Rectangle { color: "green"; anchors.fill: parent; } Image { diff --git a/qt-mobile/qml/icons/main-menu.png b/qt-mobile/qml/icons/main-menu.png Binary files differnew file mode 100644 index 000000000..20729b8f5 --- /dev/null +++ b/qt-mobile/qml/icons/main-menu.png diff --git a/qt-mobile/qml/icons/main-menu.svg b/qt-mobile/qml/icons/main-menu.svg new file mode 100644 index 000000000..1e89193f5 --- /dev/null +++ b/qt-mobile/qml/icons/main-menu.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 36h36v-4H6v4zm0-10h36v-4H6v4zm0-14v4h36v-4H6z"/></svg> diff --git a/qt-mobile/qml/mobile-resources.qrc b/qt-mobile/qml/mobile-resources.qrc index 945b53a10..24b88676f 100644 --- a/qt-mobile/qml/mobile-resources.qrc +++ b/qt-mobile/qml/mobile-resources.qrc @@ -15,6 +15,7 @@ <file>StartPage.qml</file> <file>dive.jpg</file> <file alias="subsurface-mobile-icon.png">../../icons/subsurface-mobile-icon.png</file> + <file alias="main-menu.png">icons/main-menu.png</file> </qresource> <qresource prefix="/imports"> <file alias="org/kde/plasma/mobilecomponents/qmldir">mobilecomponents/qmldir</file> |