Fix missing icons since move to PyQt6

This commit is contained in:
fieldOfView 2022-04-22 22:33:14 +02:00
parent 5d859ffacc
commit b622738ae3
9 changed files with 12 additions and 12 deletions

View file

@ -23,7 +23,7 @@ Column
{ {
id: profileImage id: profileImage
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
source: "../images/backup.svg" source: Qt.resolvedUrl("../images/backup.svg")
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
width: Math.round(parent.width / 4) width: Math.round(parent.width / 4)
} }

View file

@ -37,7 +37,7 @@ Cura.RoundedRectangle
width: UM.Theme.getSize("section").height width: UM.Theme.getSize("section").height
height: width height: width
color: UM.Theme.getColor("text_link") color: UM.Theme.getColor("text_link")
source: "../images/arrow_down.svg" source: Qt.resolvedUrl("../images/arrow_down.svg")
} }
Label Label
@ -65,7 +65,7 @@ Cura.RoundedRectangle
{ {
target: projectImage target: projectImage
color: UM.Theme.getColor("text_link") color: UM.Theme.getColor("text_link")
source: "../images/arrow_down.svg" source: Qt.resolvedUrl("../images/arrow_down.svg")
} }
PropertyChanges PropertyChanges
{ {
@ -88,7 +88,7 @@ Cura.RoundedRectangle
{ {
target: projectImage target: projectImage
color: UM.Theme.getColor("text_link") color: UM.Theme.getColor("text_link")
source: "../images/arrow_down.svg" source: Qt.resolvedUrl("../images/arrow_down.svg")
} }
PropertyChanges PropertyChanges
{ {
@ -111,7 +111,7 @@ Cura.RoundedRectangle
{ {
target: projectImage target: projectImage
color: UM.Theme.getColor("action_button_disabled_text") color: UM.Theme.getColor("action_button_disabled_text")
source: "../images/update.svg" source: Qt.resolvedUrl("../images/update.svg")
} }
PropertyChanges PropertyChanges
{ {

View file

@ -99,7 +99,7 @@ Item
{ {
id: digitalFactoryImage id: digitalFactoryImage
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
source: searchBar.text === "" ? "../images/digital_factory.svg" : "../images/projects_not_found.svg" source: Qt.resolvedUrl(searchBar.text === "" ? "../images/digital_factory.svg" : "../images/projects_not_found.svg")
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
width: parent.width - 2 * UM.Theme.getSize("thick_margin").width width: parent.width - 2 * UM.Theme.getSize("thick_margin").width
} }

View file

@ -14,7 +14,7 @@ UM.SimpleButton
width: UM.Theme.getSize("save_button_specs_icons").width width: UM.Theme.getSize("save_button_specs_icons").width
height: UM.Theme.getSize("save_button_specs_icons").height height: UM.Theme.getSize("save_button_specs_icons").height
iconSource: "model_checker.svg" iconSource: Qt.resolvedUrl("model_checker.svg")
anchors.verticalCenter: parent ? parent.verticalCenter : undefined anchors.verticalCenter: parent ? parent.verticalCenter : undefined
color: UM.Theme.getColor("text_scene") color: UM.Theme.getColor("text_scene")
hoverColor: UM.Theme.getColor("text_scene_hover") hoverColor: UM.Theme.getColor("text_scene_hover")

View file

@ -475,7 +475,7 @@ UM.Dialog
} }
toolTipContentAlignment: UM.Enums.ContentAlignment.AlignLeft toolTipContentAlignment: UM.Enums.ContentAlignment.AlignLeft
onClicked: dialog.show() onClicked: dialog.show()
// iconSource: "Script.svg" // iconSource: Qt.resolvedUrl("Script.svg")
fixedWidthMode: false fixedWidthMode: false
} }

View file

@ -22,7 +22,7 @@ Item
property int size: 32 * screenScaleFactor // TODO: Theme! property int size: 32 * screenScaleFactor // TODO: Theme!
// THe extruder icon source; NOTE: This shouldn't need to be changed // THe extruder icon source; NOTE: This shouldn't need to be changed
property string iconSource: "../svg/icons/Extruder.svg" property string iconSource: Qt.resolvedUrl("../svg/icons/Extruder.svg")
height: size height: size
width: size width: size

View file

@ -45,7 +45,7 @@ Item
anchors.centerIn: printJobPreview anchors.centerIn: printJobPreview
color: UM.Theme.getColor("monitor_placeholder_image") color: UM.Theme.getColor("monitor_placeholder_image")
height: printJobPreview.height height: printJobPreview.height
source: "../svg/ultibot.svg" source: Qt.resolvedUrl("../svg/ultibot.svg")
/* Since print jobs ALWAYS have an image url, we have to check if that image URL errors or /* Since print jobs ALWAYS have an image url, we have to check if that image URL errors or
not in order to determine if we show the placeholder (ultibot) image instead. */ not in order to determine if we show the placeholder (ultibot) image instead. */
visible: printJob && previewImage.status == Image.Error visible: printJob && previewImage.status == Image.Error

View file

@ -252,7 +252,7 @@ Item
bottom: parent.bottom bottom: parent.bottom
bottomMargin: 20 * screenScaleFactor // TODO: Theme! bottomMargin: 20 * screenScaleFactor // TODO: Theme!
} }
iconSource: "../svg/icons/CameraPhoto.svg" iconSource: Qt.resolvedUrl("../svg/icons/CameraPhoto.svg")
enabled: !cloudConnection enabled: !cloudConnection
visible: printer visible: printer
} }

View file

@ -61,7 +61,7 @@ Item
left: parent.left left: parent.left
leftMargin: UM.Theme.getSize("default_margin").width leftMargin: UM.Theme.getSize("default_margin").width
} }
source: UM.Theme.getIcon("search") source: UM.Theme.getIcon("Magnifier")
height: UM.Theme.getSize("small_button_icon").height height: UM.Theme.getSize("small_button_icon").height
width: height width: height
color: UM.Theme.getColor("text") color: UM.Theme.getColor("text")