From 8589f7ec6edaa71fa3c9af800e6006a5d7b4f3c9 Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Tue, 1 Oct 2019 23:22:29 -0500 Subject: [PATCH] Part: new icon for Part::Part2DObject, in SVG, instead of using a generic XPM --- src/Mod/Part/Gui/Resources/Part.qrc | 1 + .../Part/Gui/Resources/icons/Tree_Part2D.svg | 266 ++++++++++++++++++ src/Mod/Part/Gui/ViewProvider2DObject.cpp | 2 +- 3 files changed, 268 insertions(+), 1 deletion(-) create mode 100644 src/Mod/Part/Gui/Resources/icons/Tree_Part2D.svg diff --git a/src/Mod/Part/Gui/Resources/Part.qrc b/src/Mod/Part/Gui/Resources/Part.qrc index 194634f6c4..df656824f6 100644 --- a/src/Mod/Part/Gui/Resources/Part.qrc +++ b/src/Mod/Part/Gui/Resources/Part.qrc @@ -69,6 +69,7 @@ icons/Part_XOR.svg icons/preferences-part_design.svg icons/Tree_Part.svg + icons/Tree_Part2D.svg icons/Tree_Part_Box_Parametric.svg icons/Tree_Part_Cone_Parametric.svg icons/Tree_Part_Cylinder_Parametric.svg diff --git a/src/Mod/Part/Gui/Resources/icons/Tree_Part2D.svg b/src/Mod/Part/Gui/Resources/icons/Tree_Part2D.svg new file mode 100644 index 0000000000..ad33c01ebb --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Tree_Part2D.svg @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + [wmayer] + + + Tree_Part + 2011-10-10 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Part/Gui/Resources/icons/Tree_Part.svg + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + [agryson] Alexander Gryson + + + + + + + + + + + + diff --git a/src/Mod/Part/Gui/ViewProvider2DObject.cpp b/src/Mod/Part/Gui/ViewProvider2DObject.cpp index 4ac85cc5ee..9867392ef9 100644 --- a/src/Mod/Part/Gui/ViewProvider2DObject.cpp +++ b/src/Mod/Part/Gui/ViewProvider2DObject.cpp @@ -80,7 +80,7 @@ ViewProvider2DObject::ViewProvider2DObject() pcRoot->addChild(GridRoot); - sPixmap = "PartFeatureImport"; + sPixmap = "Tree_Part2D"; } ViewProvider2DObject::~ViewProvider2DObject()