From 2dd8a2ad7bb5fbdd263fecd76c0108ad0c44eef0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 4 Oct 2017 17:06:18 -0700 Subject: [PATCH] QML UI: download icon in main menu We need a white path drawn on the dark action button, but a black path drawn for the main menu. (looks like a white space change snuck in here) Signed-off-by: Dirk Hohndel --- icons/button-download-dc-black_icon.svg | 17 +++++++++++++++++ mobile-widgets/qml/main.qml | 9 +++++---- mobile-widgets/qml/mobile-resources.qrc | 1 + 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 icons/button-download-dc-black_icon.svg diff --git a/icons/button-download-dc-black_icon.svg b/icons/button-download-dc-black_icon.svg new file mode 100644 index 000000000..e9f843a77 --- /dev/null +++ b/icons/button-download-dc-black_icon.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 02c81f376..5c5b6df36 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -141,7 +141,8 @@ Kirigami.ApplicationWindow { } } Kirigami.Action { - iconName: "icons/downloadDC.svg" + // this of course assumes a white background - theming means this needs to change again + iconName: "icons/downloadDC-black.svg" text: qsTr("Download from DC") enabled: true onTriggered: { @@ -247,9 +248,9 @@ if you have network connectivity and want to sync your data to cloud storage."), Kirigami.Action { iconName: "icons/ic_settings.svg" text: qsTr("Settings") - onTriggered: { - stackView.push(settingsWindow) - detailsWindow.endEditMode() + onTriggered: { + stackView.push(settingsWindow) + detailsWindow.endEditMode() } }, Kirigami.Action { diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 9f8107f2c..d989a5ac1 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -43,6 +43,7 @@ kirigami/icons/trash-empty.svg kirigami/icons/list-add.svg ../../icons/button-download-dc_icon.svg + ../../icons/button-download-dc-black_icon.svg icons/ic_home_24px.svg icons/ic_info_outline_24px.svg icons/ic_help_outline_24px.svg