Rename Sketcher icons

Renamed Sketcher_AlterConstruction.svg to
Sketcher_ToggleConstruction.svg, and renamed the original
Sketcher_ToggleConstruction.svg to Sketcher_ToggleConstruction_old.svg
as per the directions of vocx in this forum post:
https://forum.freecadweb.org/viewtopic.php?f=21&t=42131&p=357725#p357725
This commit is contained in:
Joshua Call
2020-01-03 20:40:19 -07:00
committed by wwmayer
parent fcffd48dd4
commit c14949b127
6 changed files with 1413 additions and 278 deletions

View File

@@ -75,7 +75,7 @@ CmdSketcherToggleConstruction::CmdSketcherToggleConstruction()
sToolTipText = QT_TR_NOOP("Toggles the toolbar or selected geometry to/from construction mode");
sWhatsThis = "Sketcher_ToggleConstruction";
sStatusTip = sToolTipText;
sPixmap = "Sketcher_AlterConstruction";
sPixmap = "Sketcher_ToggleConstruction";
sAccel = "C,M";
eType = ForEdit;

View File

@@ -41,7 +41,6 @@
<file>icons/Constraint_VerticalDistance.svg</file>
<file>icons/Constraint_VerticalDistance_Driven.svg</file>
<file>icons/SketcherWorkbench.svg</file>
<file>icons/Sketcher_AlterConstruction.svg</file>
<file>icons/Sketcher_AlterFillet.svg</file>
<file>icons/Sketcher_BSplineApproximate.svg</file>
<file>icons/Sketcher_BSplineComb.svg</file>
@@ -178,6 +177,7 @@
<file>icons/Sketcher_ToggleActiveConstraint.svg</file>
<file>icons/Sketcher_ToggleConstraint.svg</file>
<file>icons/Sketcher_ToggleConstruction.svg</file>
<file>icons/Sketcher_ToggleConstruction_old.svg</file>
<file>icons/Sketcher_ToggleNormal.svg</file>
<file>icons/Sketcher_Toggle_Constraint_Driven.svg</file>
<file>icons/Sketcher_Toggle_Constraint_Driving.svg</file>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 30 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -0,0 +1,301 @@
<?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="svg2726"
sodipodi:version="0.32"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="Sketcher_ToggleConstruction_old.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.1">
<defs
id="defs2728">
<marker
inkscape:stockid="Arrow2Lend"
orient="auto"
refY="0.0"
refX="0.0"
id="Arrow2Lend"
style="overflow:visible;">
<path
id="path3837"
style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
transform="scale(1.1) rotate(180) translate(1,0)" />
</marker>
<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="perspective2734" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-7">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-4" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-0" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-7"
id="radialGradient3904"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-2"
id="radialGradient2370"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-2">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-5" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-1" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient10504-5"
xlink:href="#linearGradient3144-2-1"
inkscape:collect="always" />
<linearGradient
inkscape:collect="always"
id="linearGradient3144-2-1">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop3146-5-4" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop3148-1-5" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-2"
id="radialGradient10640"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3144-2-1"
id="radialGradient10642"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
cx="225.26402"
cy="672.79736"
fx="225.26402"
fy="672.79736"
r="34.345188" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="11"
inkscape:cx="36.611167"
inkscape:cy="32.173934"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:document-units="px"
inkscape:grid-bbox="true"
inkscape:window-width="1853"
inkscape:window-height="1025"
inkscape:window-x="67"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:snap-bbox="false"
inkscape:snap-nodes="true">
<inkscape:grid
type="xygrid"
id="grid3020"
empspacing="2"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true" />
</sodipodi:namedview>
<metadata
id="metadata2731">
<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></dc:title>
<dc:creator>
<cc:Agent>
<dc:title>[Abdullah Tahiri]</dc:title>
</cc:Agent>
</dc:creator>
<dc:title>Sketcher_ToggleConstruction_old</dc:title>
<dc:date>2015-05-24</dc:date>
<dc:relation>http://www.freecadweb.org/wiki/index.php?title=Artwork</dc:relation>
<dc:publisher>
<cc:Agent>
<dc:title>FreeCAD</dc:title>
</cc:Agent>
</dc:publisher>
<dc:identifier>FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_ToggleConstruction_old.svg</dc:identifier>
<dc:rights>
<cc:Agent>
<dc:title>FreeCAD LGPL2+</dc:title>
</cc:Agent>
</dc:rights>
<cc:license>https://www.gnu.org/copyleft/lesser.html</cc:license>
<dc:contributor>
<cc:Agent>
<dc:title>[agryson] Alexander Gryson
[JoshuaCall]</dc:title>
</cc:Agent>
</dc:contributor>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer"
style="display:inline">
<g
id="g3016"
transform="matrix(0,1,-1,0,52.645116,-67.323607)">
<path
inkscape:connector-curvature="0"
id="path3012"
d="m 102.3236,17.645128 -9.999993,0 5.000001,-8.0000017 z"
style="fill:#ffffff;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path3014"
d="m 92.323607,21.645115 9.999993,0 -4.999992,8.000001 z"
style="fill:#ffffff;stroke:#2e3436;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
</g>
<rect
style="fill:#ffffff;fill-opacity:1;stroke:#2e3436;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:2.04000000000000000"
id="rect3022"
width="8"
height="54"
x="9"
y="5" />
<g
id="g3821"
transform="translate(-28,12)"
style="stroke:#2e3436;fill:#d3d7cf">
<rect
y="-9"
x="77"
height="10"
width="8"
id="rect3022-1"
style="fill:#d3d7cf;fill-opacity:1;stroke:#2e3436;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:2.04000000000000000;display:inline" />
<path
sodipodi:nodetypes="ccc"
inkscape:connector-curvature="0"
id="path3798-7"
d="m 84,-7 -5,0 0,7"
style="fill:#d3d7cf;stroke:#ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:inline" />
</g>
<g
style="display:inline;stroke:#2e3436;fill:#d3d7cf"
id="g3821-4"
transform="translate(-28,28)">
<rect
y="-9"
x="77"
height="10"
width="8"
id="rect3022-1-0"
style="fill:#d3d7cf;fill-opacity:1;stroke:#2e3436;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:2.04000000000000000;display:inline" />
<path
sodipodi:nodetypes="ccc"
inkscape:connector-curvature="0"
id="path3798-7-9"
d="m 84,-7 -5,0 0,7"
style="fill:#d3d7cf;stroke:#ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:inline" />
</g>
<g
style="display:inline;stroke:#2e3436;fill:#d3d7cf"
id="g3821-48"
transform="translate(-28,44)">
<rect
y="-9"
x="77"
height="10"
width="8"
id="rect3022-1-8"
style="fill:#d3d7cf;fill-opacity:1;stroke:#2e3436;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:2.04000000000000000;display:inline" />
<path
sodipodi:nodetypes="ccc"
inkscape:connector-curvature="0"
id="path3798-7-2"
d="m 84,-7 -5,0 0,7"
style="fill:#d3d7cf;stroke:#ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:inline" />
</g>
<g
style="display:inline;stroke:#2e3436;fill:#d3d7cf"
id="g3821-4-4"
transform="translate(-28,60)">
<rect
y="-9"
x="77"
height="10"
width="8"
id="rect3022-1-0-5"
style="fill:#d3d7cf;fill-opacity:1;stroke:#2e3436;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:2.04000000000000000;display:inline" />
<path
sodipodi:nodetypes="ccc"
inkscape:connector-curvature="0"
id="path3798-7-9-5"
d="m 84,-7 -5,0 0,7"
style="fill:#d3d7cf;stroke:#ffffff;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;display:inline" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -163,7 +163,7 @@ void ElementView::contextMenuEvent (QContextMenuEvent* event)
menu.addSeparator();
CONTEXT_ITEM("Sketcher_AlterConstruction","Toggle construction line","Sketcher_ToggleConstruction",doToggleConstruction,true)
CONTEXT_ITEM("Sketcher_ToggleConstruction","Toggle construction line","Sketcher_ToggleConstruction",doToggleConstruction,true)
menu.addSeparator();