From f3929af0e4f38915641033be33645e10609c5547 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Apr 2016 11:39:37 -0700 Subject: QML UI: add new Kirigami file Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/mobile-resources.qrc | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets/qml/mobile-resources.qrc') diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 0592c1119..a02896c59 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -46,6 +46,7 @@ kirigami/private/ActionButton.qml kirigami/private/BackButton.qml kirigami/private/ContextIcon.qml + kirigami/private/DefaultListItemBackground.qml kirigami/private/EdgeShadow.qml kirigami/private/MenuIcon.qml kirigami/private/PageStack.js -- cgit v1.2.3-70-g09d2 From 34628f8e6d2156d7eae9bfbb64d5b43ca58e1a34 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Apr 2016 05:21:56 -0700 Subject: QML UI: add option to disable cloud to start screen Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 8 ++++ mobile-widgets/qml/icons/nocloud.svg | 71 +++++++++++++++++++++++++++++++++ mobile-widgets/qml/mobile-resources.qrc | 1 + 3 files changed, 80 insertions(+) create mode 100644 mobile-widgets/qml/icons/nocloud.svg (limited to 'mobile-widgets/qml/mobile-resources.qrc') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index e5ce929d2..355e0ba34 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -217,6 +217,7 @@ Kirigami.ScrollablePage { onVisibleChanged: { if (visible) { page.actions.main = page.saveAction + page.actions.right = page.offlineAction title = "Cloud credentials" } else if(manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL) { page.actions.main = page.addDiveAction @@ -276,6 +277,13 @@ Kirigami.ScrollablePage { } } + property QtObject offlineAction: Action { + iconName: "qrc:/qml/nocloud.svg" + onTriggered: { + manager.syncToCloud = false + } + } + onBackRequested: { if (startPageWrapper.visible && diveListView.count > 0 && manager.credentialStatus != QMLManager.INVALID) { manager.credentialStatus = oldStatus diff --git a/mobile-widgets/qml/icons/nocloud.svg b/mobile-widgets/qml/icons/nocloud.svg new file mode 100644 index 000000000..0661d32e6 --- /dev/null +++ b/mobile-widgets/qml/icons/nocloud.svg @@ -0,0 +1,71 @@ + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index a02896c59..4fe82a66a 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -21,6 +21,7 @@ icons/context-menu.png icons/menu-edit.png icons/menu-back.png + icons/nocloud.svg kirigami/qmldir -- cgit v1.2.3-70-g09d2