From 1a7fd88bc3c3b4e7f80c99b1d2598c0fbde57d8a Mon Sep 17 00:00:00 2001 From: bitacovir Date: Sat, 12 Sep 2020 18:20:54 -0300 Subject: [PATCH] Add SVG icon for Part Reverse Shape command Part Reverse Shape command does not have icon for the FreeCAD UI (Part WB). This commit adds SVG file with icon for this command. Also, it makes the necessary changes on Command.cpp and Part.qrc files. The new SVG icon follows the FreeCAD Artwork Guidelines and were saved as Plain SVG format. The icon designs keep the style of the existing icons in the Part Workbench: https://wiki.freecadweb.org/Part_Module The discussion with the request can be found in the UX/UI Design FreeCAD Forum: https://forum.freecadweb.org/viewtopic.php?f=34&t=44278&hilit=bitacovir --- src/Mod/Part/Gui/Command.cpp | 1 + src/Mod/Part/Gui/Resources/Part.qrc | 1 + .../Resources/icons/Part_Reverse_Shape.svg | 348 ++++++++++++++++++ 3 files changed, 350 insertions(+) create mode 100644 src/Mod/Part/Gui/Resources/icons/Part_Reverse_Shape.svg diff --git a/src/Mod/Part/Gui/Command.cpp b/src/Mod/Part/Gui/Command.cpp index 0e523b9863..dec5cec6e3 100644 --- a/src/Mod/Part/Gui/Command.cpp +++ b/src/Mod/Part/Gui/Command.cpp @@ -1228,6 +1228,7 @@ CmdPartReverseShape::CmdPartReverseShape() sToolTipText = QT_TR_NOOP("Reverse orientation of shapes"); sWhatsThis = "Part_ReverseShape"; sStatusTip = sToolTipText; + sPixmap = "Part_Reverse_Shape"; } void CmdPartReverseShape::activated(int iMsg) diff --git a/src/Mod/Part/Gui/Resources/Part.qrc b/src/Mod/Part/Gui/Resources/Part.qrc index c54306687a..a79abe5a14 100644 --- a/src/Mod/Part/Gui/Resources/Part.qrc +++ b/src/Mod/Part/Gui/Resources/Part.qrc @@ -49,6 +49,7 @@ icons/Part_Polygon_Parametric.svg icons/Part_ProjectionOnSurface.svg icons/Part_Refine_Shape.svg + icons/Part_Reverse_Shape.svg icons/Part_Revolve.svg icons/Part_RuledSurface.svg icons/Part_Section.svg diff --git a/src/Mod/Part/Gui/Resources/icons/Part_Reverse_Shape.svg b/src/Mod/Part/Gui/Resources/icons/Part_Reverse_Shape.svg new file mode 100644 index 0000000000..550bbf7607 --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_Reverse_Shape.svg @@ -0,0 +1,348 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + Shape with arrow pointing upwards and a double pointed curved arrow pointing from inside of the shape to the other side + + + Based on Renovatorio's work + + + + + shape + face + arrow + + + + + + + FreeCAD + + + + + FreeCAD LGPL2+ + + + + + [bitacovir] + + + 2020/03/18 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +