Merge pull request #102 from triplus/SVG_WB_Icons

Add SVG workbench icons
This commit is contained in:
Yorik van Havre
2016-02-27 16:06:13 -03:00
91 changed files with 7179 additions and 939 deletions

View File

@@ -133,16 +133,15 @@ fc_target_copy_resource(MeshGui
${CMAKE_BINARY_DIR}/Mod/Mesh
InitGui.py)
SET_BIN_DIR(MeshGui MeshGui /Mod/Mesh)
SET_PYTHON_PREFIX_SUFFIX(MeshGui)
INSTALL(TARGETS MeshGui DESTINATION ${CMAKE_INSTALL_LIBDIR})
SET(MeshGuiIcon_SVG
Resources/icons/Tree_Mesh.svg
Resources/icons/MeshWorkbench.svg
)
fc_copy_sources(MeshGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Mesh" ${MeshGuiIcon_SVG})
INSTALL(FILES ${MeshGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Mesh/Resources/icons")
SET_BIN_DIR(MeshGui MeshGui /Mod/Mesh)
SET_PYTHON_PREFIX_SUFFIX(MeshGui)
INSTALL(TARGETS MeshGui DESTINATION ${CMAKE_INSTALL_LIBDIR})

View File

@@ -13,6 +13,7 @@
<file>icons/Mesh_Regular_Solid.svg</file>
<file>icons/Mesh_Remove_Components.svg</file>
<file>icons/Mesh_Tree_Curvature_Plot.svg</file>
<file>icons/MeshWorkbench.svg</file>
<file>icons/RegularSolids/Mesh_Cone.svg</file>
<file>icons/RegularSolids/Mesh_Cube.svg</file>
<file>icons/RegularSolids/Mesh_Cylinder.svg</file>

View File

@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="64px"
height="64px"
id="svg2568"
sodipodi:version="0.32"
inkscape:version="0.91 r"
sodipodi:docname="MeshWorkbench.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.1">
<defs
id="defs2570">
<linearGradient
id="linearGradient3864">
<stop
id="stop3866"
offset="0"
style="stop-color:#71f873;stop-opacity:1;" />
<stop
id="stop3868"
offset="1"
style="stop-color:#009520;stop-opacity:1;" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3864"
id="radialGradient3552"
gradientUnits="userSpaceOnUse"
cx="48.645836"
cy="25.149042"
fx="48.645836"
fy="25.149042"
r="19.571428" />
<linearGradient
id="linearGradient3593">
<stop
style="stop-color:#c8f9d7;stop-opacity:1;"
offset="0"
id="stop3595" />
<stop
style="stop-color:#63ca72;stop-opacity:1;"
offset="1"
id="stop3597" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3593"
id="radialGradient3599"
gradientUnits="userSpaceOnUse"
cx="51.63789367675781"
cy="24.96270370483398"
fx="51.63789367675781"
fy="24.96270370483398"
r="19.5714282989502" />
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 32 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="64 : 32 : 1"
inkscape:persp3d-origin="32 : 21.333333 : 1"
id="perspective2576" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6568542"
inkscape:cx="27.041072"
inkscape:cy="6.5171491"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="966"
inkscape:window-height="684"
inkscape:window-x="286"
inkscape:window-y="142"
inkscape:window-maximized="0" />
<metadata
id="metadata2573">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<g
id="g4154">
<ellipse
ry="8.4563856"
rx="25.596207"
id="path3554"
style="display:inline;overflow:visible;visibility:visible;opacity:0.66523605;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.5;marker:none;enable-background:accumulate"
cx="37.403759"
cy="50.04628" />
<path
style="display:inline;overflow:visible;visibility:visible;fill:#00af00;fill-opacity:1;fill-rule:evenodd;stroke:#003706;stroke-width:2.19997978;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
d="M 52.718468,35.352956 44.361612,50.226596 27.544944,57.050218 8.8275113,48.704579 2.1532007,35.352956 5.2391744,20.171027 14.052285,10.675966 27.544944,6.6677848 45.823267,14.804301 Z"
id="path3768"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccc" />
<path
inkscape:connector-curvature="0"
id="path3770"
d="m 14.042992,10.945806 31.423502,4.804187 -39.7158153,4.804187 46.6988153,14.849305 -49.7538779,0 L 43.938963,49.379301 9.0239601,47.850696"
style="fill:none;stroke:#002f00;stroke-width:1.8;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -33,7 +33,7 @@
class MeshWorkbench (Workbench):
"Mesh workbench object"
def __init__(self):
self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Mesh/Resources/icons/Tree_Mesh.svg"
self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Mesh/Resources/icons/MeshWorkbench.svg"
self.__class__.MenuText = "Mesh Design"
self.__class__.ToolTip = "Mesh design workbench"
@@ -43,4 +43,4 @@ class MeshWorkbench (Workbench):
def GetClassName(self):
return "MeshGui::Workbench"
Gui.addWorkbench(MeshWorkbench())
Gui.addWorkbench(MeshWorkbench())