From 5739294c07b97d2d4497b3203b0592cee5dbda9d Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Wed, 19 Jul 2017 18:22:40 +0200 Subject: QML UI: add icons to the dive management sub-menu The title says it all. Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/main.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 49201e15d..f5a80edb2 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -134,6 +134,7 @@ Kirigami.ApplicationWindow { iconName: "icons/ic_sync.svg" text: qsTr("Dive managment") Kirigami.Action { + iconName: "icons/ic_add.svg" text: qsTr("Add dive manually") enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD onTriggered: { @@ -142,6 +143,7 @@ Kirigami.ApplicationWindow { } } Kirigami.Action { + iconName: "icons/downloadDC.svg" text: qsTr("Download from DC") enabled: true onTriggered: { @@ -150,12 +152,14 @@ Kirigami.ApplicationWindow { } } Kirigami.Action { + iconName: "icons/ic_add_location.svg" text: qsTr("Apply GPS Fixes") onTriggered: { manager.applyGpsData(); } } Kirigami.Action { + iconName: "icons/cloud_sync.svg" text: qsTr("Manual sync with cloud") enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD onTriggered: { @@ -174,6 +178,7 @@ Kirigami.ApplicationWindow { } } Kirigami.Action { + iconName: syncToCloud ? "icons/ic_cloud_off.svg" : "icons/ic_cloud_done.svg" text: syncToCloud ? qsTr("Offline mode") : qsTr("Enable auto cloud sync") enabled: manager.credentialStatus !== QMLManager.NOCLOUD onTriggered: { -- cgit v1.2.3-70-g09d2