mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
cc77046db5
commit
2466351a5f
2 changed files with 5 additions and 5 deletions
|
@ -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: {
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue