diff options
author | Murillo Bernardes <mfbernardes@gmail.com> | 2018-06-17 15:30:02 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-06-18 06:54:40 +0900 |
commit | 2466351a5f2aa0085e11f11e2c9fc0431ebdcc5b (patch) | |
tree | 828bbb76932135df13aab5b47d825a404f527858 /mobile-widgets | |
parent | cc77046db505143e47aca1a7d08e842384c020cd (diff) | |
download | subsurface-2466351a5f2aa0085e11f11e2c9fc0431ebdcc5b.tar.gz |
mobile: use full icon path.
For some reason Kirigami.Icon mess up icon display when filename
extension is omitted. Because of this a perfectly good, scalable svg
show up as a low resolution scaled up icon.
Signed-off-by: Murillo Bernardes <mfbernardes@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 6 | ||||
-rw-r--r-- | mobile-widgets/qml/GpsList.qml | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 35d0c3f72..f5a920597 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -141,7 +141,7 @@ Kirigami.Page { property QtObject deleteAction: Kirigami.Action { text: qsTr("Delete dive") icon { - name: ":/icons/trash-empty" + name: ":/icons/trash-empty.svg" } onTriggered: { var deletedId = currentItem.modelData.dive.id @@ -158,7 +158,7 @@ Kirigami.Page { property QtObject cancelAction: Kirigami.Action { text: qsTr("Cancel edit") icon { - name: ":/icons/dialog-cancel" + name: ":/icons/dialog-cancel.svg" } onTriggered: { endEditMode() @@ -178,7 +178,7 @@ Kirigami.Page { actions.main: Kirigami.Action { icon { - name: state !== "view" ? ":/icons/document-save" : ":/icons/document-edit" + name: state !== "view" ? ":/icons/document-save.svg" : ":/icons/document-edit.svg" color: subsurfaceTheme.primaryColor } onTriggered: { diff --git a/mobile-widgets/qml/GpsList.qml b/mobile-widgets/qml/GpsList.qml index 786b0e71f..06093b771 100644 --- a/mobile-widgets/qml/GpsList.qml +++ b/mobile-widgets/qml/GpsList.qml @@ -74,7 +74,7 @@ Kirigami.ScrollablePage { actions: [ Kirigami.Action { icon { - name: ":/icons/trash-empty" + name: ":/icons/trash-empty.svg" } onTriggered: { print("delete this!") @@ -83,7 +83,7 @@ Kirigami.ScrollablePage { }, Kirigami.Action { icon { - name: ":/icons/gps" + name: ":/icons/gps.svg" } onTriggered: { showMap() |