Fix resolving of URL's

This commit is contained in:
Jaime van Kessel 2022-04-06 09:57:45 +02:00
parent 605280255f
commit c88ed076a1
2 changed files with 4 additions and 4 deletions

View file

@ -59,11 +59,11 @@ Item
switch (packageData.packageType) switch (packageData.packageType)
{ {
case "plugin": case "plugin":
return "../images/Plugin.svg"; return Qt.resolvedUrl("../images/Plugin.svg");
case "material": case "material":
return "../images/Spool.svg"; return Qt.resolvedUrl("../images/Spool.svg");
default: default:
return "../images/placeholder.svg"; return Qt.resolvedUrl("../images/placeholder.svg");
} }
} }
} }

View file

@ -75,7 +75,7 @@ Item
UM.SimpleButton UM.SimpleButton
{ {
id: playButton id: playButton
iconSource: !isSimulationPlaying ? "./resources/Play.svg": "./resources/Pause.svg" iconSource: Qt.resolvedUrl(!isSimulationPlaying ? "./resources/Play.svg": "./resources/Pause.svg")
width: UM.Theme.getSize("small_button").width width: UM.Theme.getSize("small_button").width
height: UM.Theme.getSize("small_button").height height: UM.Theme.getSize("small_button").height
hoverColor: UM.Theme.getColor("slider_handle_active") hoverColor: UM.Theme.getColor("slider_handle_active")