From 345f0570a5d6333927a388fabac8e9784e6c45bb Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 6 Feb 2024 23:40:58 +1300 Subject: [PATCH] Mobile: Add 'Contribute' link. Add a link to the 'Contribute' page to the mobile app. Signed-off-by: Michael Keller --- mobile-widgets/qml/icons/recycle.svg | 57 +++++++++++++++++++++++++ mobile-widgets/qml/main.qml | 9 ++++ mobile-widgets/qml/mobile-resources.qrc | 1 + 3 files changed, 67 insertions(+) create mode 100644 mobile-widgets/qml/icons/recycle.svg diff --git a/mobile-widgets/qml/icons/recycle.svg b/mobile-widgets/qml/icons/recycle.svg new file mode 100644 index 000000000..67506dd29 --- /dev/null +++ b/mobile-widgets/qml/icons/recycle.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + image/svg+xml + + + + + Openclipart + + + Recycling Symbol + 2008-07-18T19:10:57 + clip art, clipart, image, line art, line art, media, png, public domain, recycle, recycle, sign, sign, silhouette, silhouette, svg, symbol, symbol, + http://openclipart.org/detail/17937/recycling-symbol-by-aj + + + AJ + + + + + clip art + clipart + image + line art + media + png + public domain + recycle + sign + silhouette + svg + symbol + + + + + + + + + + + diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index fe67c4609..117ae9357 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -460,6 +460,15 @@ if you have network connectivity and want to sync your data to cloud storage."), Qt.openUrlExternally("https://www.subsurface-divelog.org/subsurface-mobile-user-manual/") } } + Kirigami.Action { + icon { + name: ":/icons/recycle.svg" + } + text: qsTr("Contribute to Subsurface") + onTriggered: { + Qt.openUrlExternally("https://www.subsurface-divelog.org/contribute/") + } + } Kirigami.Action { icon { name: ":/icons/contact_support.svg" diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 19091f7c1..e66567047 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -97,6 +97,7 @@ icons/ic_filter_list_24px.svg icons/ic_sort_24px.svg icons/local_offer.svg + icons/recycle.svg