diff --git a/src/Mod/Part/BOPTools/JoinFeatures.py b/src/Mod/Part/BOPTools/JoinFeatures.py index 2406e889d0e3..0d67815899c5 100644 --- a/src/Mod/Part/BOPTools/JoinFeatures.py +++ b/src/Mod/Part/BOPTools/JoinFeatures.py @@ -139,7 +139,7 @@ def __init__(self,vobj): vobj.Proxy = self def getIcon(self): - return getIconPath("Part_JoinConnect.svg") + return ":/icons/booleans/Part_JoinConnect.svg" def attach(self, vobj): self.ViewObject = vobj @@ -250,7 +250,7 @@ def __init__(self,vobj): vobj.Proxy = self def getIcon(self): - return getIconPath("Part_JoinEmbed.svg") + return ":/icons/booleans/Part_JoinEmbed.svg" def attach(self, vobj): self.ViewObject = vobj @@ -344,7 +344,7 @@ def __init__(self,vobj): vobj.Proxy = self def getIcon(self): - return getIconPath("Part_JoinCutout.svg") + return ":/icons/booleans/Part_JoinCutout.svg" def attach(self, vobj): self.ViewObject = vobj diff --git a/src/Mod/Part/BOPTools/SplitFeatures.py b/src/Mod/Part/BOPTools/SplitFeatures.py index 699a94aeef5a..affb0cbcc4ae 100644 --- a/src/Mod/Part/BOPTools/SplitFeatures.py +++ b/src/Mod/Part/BOPTools/SplitFeatures.py @@ -94,7 +94,7 @@ def __init__(self,vobj): vobj.Proxy = self def getIcon(self): - return getIconPath("Part_BooleanFragments.svg") + return ":/icons/booleans/Part_BooleanFragments.svg" def attach(self, vobj): self.ViewObject = vobj @@ -252,7 +252,7 @@ def __init__(self,vobj): vobj.Proxy = self def getIcon(self): - return getIconPath("Part_Slice.svg") + return ":/icons/booleans/Part_Slice.svg" def attach(self, vobj): self.ViewObject = vobj @@ -432,7 +432,7 @@ def __init__(self,vobj): vobj.Proxy = self def getIcon(self): - return getIconPath("Part_XOR.svg") + return ":/icons/booleans/Part_XOR.svg" def attach(self, vobj): self.ViewObject = vobj diff --git a/src/Mod/Part/BOPTools/ToleranceFeatures.py b/src/Mod/Part/BOPTools/ToleranceFeatures.py index 7e46d1e2fd8d..ab45acc236c9 100644 --- a/src/Mod/Part/BOPTools/ToleranceFeatures.py +++ b/src/Mod/Part/BOPTools/ToleranceFeatures.py @@ -145,7 +145,7 @@ def __init__(self,vobj): vobj.Proxy = self def getIcon(self): - return getIconPath("preferences-part_design.svg") + return ":/icons/preferences-part_design.svg" def attach(self, vobj): self.ViewObject = vobj diff --git a/src/Mod/Part/CompoundTools/CompoundFilter.py b/src/Mod/Part/CompoundTools/CompoundFilter.py index 9a0fc0d91716..13b77bf1fb33 100644 --- a/src/Mod/Part/CompoundTools/CompoundFilter.py +++ b/src/Mod/Part/CompoundTools/CompoundFilter.py @@ -218,7 +218,7 @@ def __init__(self, vobj): vobj.setEditorMode("DontUnhideOnDelete", 2) # set hidden def getIcon(self): - return "Part_CompoundFilter" + return ":/icons/booleans/Part_CompoundFilter.svg" def attach(self, vobj): self.ViewObject = vobj diff --git a/src/Mod/Part/JoinFeatures.py b/src/Mod/Part/JoinFeatures.py index d6db3772fdc3..5943f98d8eca 100644 --- a/src/Mod/Part/JoinFeatures.py +++ b/src/Mod/Part/JoinFeatures.py @@ -108,16 +108,14 @@ def __init__(self, vobj): def getIcon(self): if self.Object is None: - return getIconPath("Part_JoinConnect.svg") + return ":/icons/booleans/Part_JoinConnect.svg" else: - return getIconPath( - { - "bypass": "Part_JoinBypass.svg", - "Connect": "Part_JoinConnect.svg", - "Embed": "Part_JoinEmbed.svg", - "Cutout": "Part_JoinCutout.svg", + return { + "bypass": ":/icons/booleans/Part_JoinBypass.svg", + "Connect": ":/icons/booleans/Part_JoinConnect.svg", + "Embed": ":/icons/booleans/Part_JoinEmbed.svg", + "Cutout": ":/icons/booleans/Part_JoinCutout.svg", }[self.Object.Mode] - ) def attach(self, vobj): self.ViewObject = vobj @@ -145,8 +143,3 @@ def onDelete(self, feature, subelements): except Exception as err: FreeCAD.Console.PrintError("Error in onDelete: " + str(err)) return True - - -def getIconPath(icon_dot_svg): - return ":/icons/" + icon_dot_svg -