diff --git a/nymea-app/images.qrc b/nymea-app/images.qrc index 0c6a5287..3782deca 100644 --- a/nymea-app/images.qrc +++ b/nymea-app/images.qrc @@ -246,5 +246,8 @@ ui/images/twitter.svg ui/images/discourse.svg ui/images/telegram.svg + ui/images/facebook.svg + ui/images/help.svg + ui/images/discord.svg diff --git a/nymea-app/ui/MainMenu.qml b/nymea-app/ui/MainMenu.qml index 1164507f..855070fe 100644 --- a/nymea-app/ui/MainMenu.qml +++ b/nymea-app/ui/MainMenu.qml @@ -141,6 +141,17 @@ Drawer { root.close(); } } + NymeaItemDelegate { + Layout.fillWidth: true + text: qsTr("Configure main view") + iconName: "../images/configure.svg" + progressive: false + visible: root.currentEngine && root.currentEngine.jsonRpcClient.currentHost + onClicked: { + root.configureMainView(); + root.close(); + } + } NymeaItemDelegate { Layout.fillWidth: true text: qsTr("App settings") @@ -162,22 +173,18 @@ Drawer { root.close(); } } - NymeaItemDelegate { - Layout.fillWidth: true - text: qsTr("Configure main view") - iconName: "../images/configure.svg" - progressive: false - visible: root.currentEngine && root.currentEngine.jsonRpcClient.currentHost - onClicked: { - root.configureMainView(); - root.close(); - } - } NymeaItemDelegate { Layout.fillWidth: true Layout.topMargin: app.margins + text: qsTr("Help") + iconName: "../images/help.svg" + progressive: false + onClicked: Qt.openUrlExternally("https://nymea.io/documentation/users/usage/first-steps") + } + NymeaItemDelegate { + Layout.fillWidth: true text: qsTr("Forum") iconName: "../images/discourse.svg" progressive: false @@ -190,6 +197,13 @@ Drawer { progressive: false onClicked: Qt.openUrlExternally("https://t.me/nymeacommunity") } + NymeaItemDelegate { + Layout.fillWidth: true + text: qsTr("Discord") + iconName: "../images/discord.svg" + progressive: false + onClicked: Qt.openUrlExternally("https://discord.gg/tX9YCpD") + } NymeaItemDelegate { Layout.fillWidth: true text: qsTr("Twitter") @@ -197,10 +211,15 @@ Drawer { progressive: false onClicked: Qt.openUrlExternally("https://twitter.com/nymea_io") } + NymeaItemDelegate { + Layout.fillWidth: true + text: qsTr("Facebook") + iconName: "../images/facebook.svg" + progressive: false + onClicked: Qt.openUrlExternally("https://m.facebook.com/groups/nymea") + } } - } - } - + } } diff --git a/nymea-app/ui/images/discord.svg b/nymea-app/ui/images/discord.svg new file mode 100644 index 00000000..4fec6dd0 --- /dev/null +++ b/nymea-app/ui/images/discord.svg @@ -0,0 +1,67 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/nymea-app/ui/images/facebook.svg b/nymea-app/ui/images/facebook.svg new file mode 100644 index 00000000..b8863f4a --- /dev/null +++ b/nymea-app/ui/images/facebook.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + diff --git a/nymea-app/ui/images/help.svg b/nymea-app/ui/images/help.svg new file mode 100644 index 00000000..efeda013 --- /dev/null +++ b/nymea-app/ui/images/help.svg @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + +