From a52ab499c0e215bbed484d8cbac75600e137ac91 Mon Sep 17 00:00:00 2001 From: bitacovir Date: Sun, 16 Aug 2020 21:32:52 -0400 Subject: [PATCH] Add SVG icon for Mesh FillupHoles command in MeshWB Many Mesh Design Workbench commands do not have icons. The Mesh FillupHoles command is one of these without a SVG icon for the FreeCAD UI. This commit adds a SVG file with an icon design for this command. Also, it makes the necessary changes on Command.cpp and Mesh.qrc files. The new SVG icon follows the FreeCAD Artwork Guidelines: https://www.freecadweb.org/wiki/Artwork_Guidelines The icon design keep the style of the existing icons in the Mesh Workbench: https://wiki.freecadweb.org/Mesh_Workbench The discussion with the project for a set of SVG icons for the Mesh Design Workbench can be found in the UX/UI Design FreeCAD Forum: https://forum.freecadweb.org/viewtopic.php?f=34&t=47494 --- src/Mod/Mesh/Gui/Command.cpp | 1 + src/Mod/Mesh/Gui/Resources/Mesh.qrc | 1 + .../Resources/icons/Mesh_Fill_up_Holes.svg | 220 ++++++++++++++++++ 3 files changed, 222 insertions(+) create mode 100644 src/Mod/Mesh/Gui/Resources/icons/Mesh_Fill_up_Holes.svg diff --git a/src/Mod/Mesh/Gui/Command.cpp b/src/Mod/Mesh/Gui/Command.cpp index ca2c317d1e..30be1be365 100644 --- a/src/Mod/Mesh/Gui/Command.cpp +++ b/src/Mod/Mesh/Gui/Command.cpp @@ -1619,6 +1619,7 @@ CmdMeshFillupHoles::CmdMeshFillupHoles() sToolTipText = QT_TR_NOOP("Fill holes of the mesh"); sWhatsThis = "Mesh_FillupHoles"; sStatusTip = QT_TR_NOOP("Fill holes of the mesh"); + sPixmap = "Mesh_Fill_up_Holes"; } void CmdMeshFillupHoles::activated(int) diff --git a/src/Mod/Mesh/Gui/Resources/Mesh.qrc b/src/Mod/Mesh/Gui/Resources/Mesh.qrc index 74e6bfb2fc..87b8d656ac 100644 --- a/src/Mod/Mesh/Gui/Resources/Mesh.qrc +++ b/src/Mod/Mesh/Gui/Resources/Mesh.qrc @@ -14,6 +14,7 @@ icons/Mesh_Remove_Components.svg icons/Mesh_Tree_Curvature_Plot.svg icons/MeshWorkbench.svg + icons/Mesh_Fill_up_Holes.svg icons/RegularSolids/Mesh_Cone.svg icons/RegularSolids/Mesh_Cube.svg icons/RegularSolids/Mesh_Cylinder.svg diff --git a/src/Mod/Mesh/Gui/Resources/icons/Mesh_Fill_up_Holes.svg b/src/Mod/Mesh/Gui/Resources/icons/Mesh_Fill_up_Holes.svg new file mode 100644 index 0000000000..bde662e2f7 --- /dev/null +++ b/src/Mod/Mesh/Gui/Resources/icons/Mesh_Fill_up_Holes.svg @@ -0,0 +1,220 @@ + + + Mesh_Fill_Up_Holes + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + Mesh_Fill_Up_Holes + Triangular mesh, and faces with holes + + + Icon based on a wmayer' s design + + + + + mesh + triangles + faces + holes + + + + + + + FreeCAD + + + + + FreeCAD LGPL2+ + + + 11-06-2020 + + + [bitacovir] + + + + + + + + + + + + + + + +