Icons: standardise `export_png` to match set

This commit is contained in:
Michael Kavanagh 2020-12-22 23:12:32 +00:00 committed by Seth Hillbrand
parent d2018b122b
commit eb1f07bade
7 changed files with 205 additions and 3 deletions

View File

@ -49,7 +49,7 @@ void EDA_3D_VIEWER::CreateMenuBar()
fileMenu->Add( _( "Export Current View as PNG..." ),
"",
ID_MENU_SCREENCOPY_PNG,
export_xpm );
export_png_xpm );
fileMenu->Add( _( "Export Current View as JPEG..." ),
"",

View File

@ -238,6 +238,7 @@ set( BMAPS_MID
export_footprint_names
export_module
export_part
export_png
export_step
export_svg
export

View File

@ -0,0 +1,65 @@
/* Do not modify this file, it was automatically generated by the
* PNG2cpp CMake script, using a *.png file as input.
*/
#include <bitmaps_png/bitmaps_list.h>
static const unsigned char png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x18, 0x08, 0x06, 0x00, 0x00, 0x00, 0xe0, 0x77, 0x3d,
0xf8, 0x00, 0x00, 0x02, 0xff, 0x49, 0x44, 0x41, 0x54, 0x48, 0xc7, 0xad, 0x94, 0xd9, 0x4f, 0x13,
0x51, 0x14, 0xc6, 0x1b, 0xa3, 0x7f, 0x81, 0x31, 0x26, 0x12, 0x35, 0x18, 0x68, 0xab, 0x82, 0x89,
0x8a, 0x44, 0x4c, 0x54, 0x3a, 0x18, 0x20, 0xa2, 0x51, 0x88, 0x3e, 0x28, 0xbe, 0xf8, 0xe0, 0x93,
0x46, 0x7c, 0xf1, 0x45, 0x01, 0x0b, 0x95, 0x12, 0xe3, 0x52, 0x1b, 0x16, 0x4d, 0x90, 0x28, 0x09,
0x21, 0x6a, 0xc0, 0x10, 0x49, 0x4c, 0x5b, 0xc7, 0x0e, 0x4b, 0x0b, 0xb4, 0x54, 0x04, 0xa2, 0x2c,
0xb2, 0xb5, 0x08, 0x98, 0x40, 0x37, 0x96, 0x5a, 0xca, 0x76, 0xbc, 0xf7, 0x9a, 0x8e, 0x9d, 0x69,
0xab, 0xd3, 0xea, 0x49, 0xbe, 0xcc, 0x9d, 0x99, 0x33, 0xdf, 0xef, 0x9c, 0x7b, 0xef, 0x5c, 0x91,
0x28, 0x20, 0x2c, 0x16, 0xcb, 0x26, 0xad, 0x56, 0xab, 0x44, 0x9a, 0x42, 0x82, 0x08, 0x35, 0xa9,
0xd1, 0x68, 0x4a, 0xb0, 0x87, 0x28, 0x5c, 0xa0, 0x24, 0x45, 0x14, 0xc6, 0x1c, 0xe9, 0x74, 0xba,
0x22, 0xae, 0xab, 0x1c, 0x36, 0xf8, 0xa5, 0xd1, 0xea, 0xc6, 0x91, 0x20, 0x3a, 0xb1, 0x90, 0x51,
0x8e, 0xff, 0xb6, 0x22, 0x03, 0xfc, 0x0f, 0x65, 0xaa, 0x5b, 0xfc, 0x00, 0x6f, 0x48, 0xc0, 0xf6,
0x62, 0x23, 0x24, 0xa9, 0xba, 0x40, 0x7a, 0xaf, 0x13, 0x52, 0x2b, 0xbb, 0x21, 0x06, 0x3d, 0xc3,
0x3a, 0xac, 0xb6, 0xc0, 0xae, 0x92, 0x76, 0x38, 0xf1, 0xf4, 0x13, 0xec, 0x50, 0x18, 0x49, 0xee,
0xce, 0xbb, 0x46, 0xa0, 0x9e, 0x74, 0x93, 0xe7, 0x87, 0x1e, 0x77, 0x09, 0x03, 0x24, 0xdc, 0x37,
0x81, 0x67, 0x79, 0x15, 0xf4, 0xc3, 0x4e, 0x18, 0xb1, 0xff, 0x80, 0x6a, 0xd3, 0x34, 0xc4, 0x22,
0x83, 0xb5, 0x75, 0x80, 0xb7, 0x5f, 0x66, 0x61, 0x70, 0xc6, 0x03, 0xba, 0x21, 0x07, 0x81, 0x76,
0x58, 0xe7, 0xa0, 0x67, 0x6a, 0x01, 0x8c, 0xe3, 0x6e, 0xb0, 0xb9, 0xbc, 0xc2, 0x01, 0x38, 0x70,
0x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60, 0x48, 0xc9, 0x26, 0x63, 0x3f, 0xc0, 0x90, 0x92, 0x03, 0x6d, 0x49, 0xa7,
0xa1, 0x25, 0xa0, 0x10, 0x24, 0x97, 0x48, 0x68, 0xa0, 0xe4, 0x9e, 0x50, 0xdb, 0x32, 0x10, 0xc0,
0x7f, 0x87, 0x3a, 0x30, 0x09, 0x07, 0x48, 0x52, 0x15, 0x91, 0x02, 0x98, 0x78, 0x2a, 0x5f, 0x30,
0x80, 0x8e, 0x4d, 0xdb, 0x8a, 0x5b, 0xe6, 0x9b, 0xb8, 0xc6, 0x6c, 0x04, 0xd0, 0x96, 0x7c, 0x86,
0x5f, 0xbd, 0x23, 0x68, 0x9b, 0x0a, 0xe8, 0xe2, 0x1c, 0xfe, 0x89, 0x02, 0x8d, 0xf0, 0x8e, 0x1a,
0x28, 0x29, 0xe3, 0x57, 0xbf, 0xf4, 0x41, 0x42, 0x51, 0xa2, 0x68, 0x02, 0x1f, 0x03, 0xc8, 0xc0,
0x19, 0xee, 0xa8, 0xc0, 0x95, 0xa3, 0x9c, 0x2c, 0xd1, 0xbf, 0x44, 0x6b, 0xdc, 0xd1, 0x2d, 0xe8,
0x87, 0xba, 0x81, 0x0c, 0x3b, 0x9b, 0x25, 0x32, 0x1b, 0xba, 0xda, 0xf1, 0x9e, 0x47, 0xe3, 0x02,
0xfe, 0xb4, 0xfc, 0x04, 0x1a, 0x8b, 0xb7, 0xf4, 0x64, 0xfa, 0xb0, 0x67, 0x00, 0x00, 0x00, 0x00,
0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE export_png_xpm[1] = {{ png, sizeof( png ), "export_png_xpm" }};
//EOF

View File

@ -161,6 +161,7 @@ EXTERN_BITMAP( export_idf_xpm )
EXTERN_BITMAP( export_footprint_names_xpm )
EXTERN_BITMAP( export_module_xpm )
EXTERN_BITMAP( export_part_xpm )
EXTERN_BITMAP( export_png_xpm )
EXTERN_BITMAP( export_step_xpm )
EXTERN_BITMAP( export_svg_xpm )
EXTERN_BITMAP( export_xpm )

View File

@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="Слой_1"
data-name="Слой 1"
viewBox="0 0 24 24"
version="1.1"
sodipodi:docname="export_png.svg"
inkscape:version="1.0.1 (c497b03c, 2020-09-10)">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1280"
inkscape:window-height="715"
id="namedview30"
showgrid="true"
inkscape:zoom="16.641036"
inkscape:cx="10.359898"
inkscape:cy="11.285686"
inkscape:window-x="330"
inkscape:window-y="1103"
inkscape:window-maximized="1"
inkscape:document-rotation="0"
inkscape:current-layer="Слой_1">
<inkscape:grid
type="xygrid"
id="grid_kicad"
spacingx="0.5"
spacingy="0.5"
color="#9999ff"
opacity="0.13"
empspacing="2" />
</sodipodi:namedview>
<metadata
id="metadata43">
<rdf:RDF>
<cc:Work
rdf:about="">
<cc:license
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>html</dc:title>
</cc:Work>
<cc:License
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Notice" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Attribution" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<defs
id="defs157629">
<style
id="style157627">.cls-1{fill:#b9b9b9;}.cls-2{fill:#1a81c4;}.cls-3{fill:#fff;}.cls-4{fill:#545454;stroke:#545454;stroke-miterlimit:10;stroke-width:0.75px;}</style>
</defs>
<title
id="title157631">html</title>
<path
class="cls-1"
d="m 6.0246,0 h 11.95 a 2.9933,2.9933 0 0 1 2.9938,2.9933 V 14.9899 A 2.9934,2.9934 0 0 1 17.975,17.9833 H 6.0246 A 2.9934,2.9934 0 0 1 3.0312,14.9899 V 2.9933 A 2.9934,2.9934 0 0 1 6.0246,0 Z"
id="path117103"
style="fill:#b9b9b9" />
<rect
class="cls-2"
x="0"
y="2.9935994"
width="18.7099"
height="9.2299004"
id="rect117105"
style="fill:#1a81c4" />
<path
class="cls-3"
d="M 7.1259,7.415874 C 7.15471,8.019337 6.981511,8.615183 6.6337,9.109174 6.311351,9.53701 5.79885,9.778484 5.2637,9.754674 5.014855,9.759674 4.768007,9.709334 4.541,9.607274 4.329291,9.508274 4.143934,9.360707 4,9.176574 v 2.333997 H 2.9221 V 4.8505735 h 0.9092 l 0.1064,0.6045 c 0.141638,-0.2137488 0.332431,-0.3904482 0.5564,-0.5153 0.232887,-0.1221008 0.492903,-0.1832346 0.7558,-0.1777 0.551626,-0.020227 1.07442,0.2465047 1.3818,0.705 0.352674,0.5525015 0.525336,1.2007732 0.4942,1.8555 z M 6.0526,7.319773 C 6.06972,6.9004918 5.97395,6.4843047 5.7753,6.114673 5.611364,5.8136565 5.290677,5.6318911 4.9482,5.645873 4.747956,5.639373 4.549939,5.689491 4.3769,5.790473 4.217816,5.888375 4.087687,6.0268918 3.9999,6.191773 v 2.1713005 c 0.08735,0.161902 0.217842,0.296444 0.377,0.3887 0.177859,0.09592 0.378048,0.142754 0.58,0.1357 0.326998,0.01993 0.640149,-0.134575 0.8233,-0.4062 0.195191,-0.321052 0.290045,-0.693085 0.2724,-1.0684 z"
id="path116454"
sodipodi:nodetypes="cccccccccccccccccccccccccc"
style="fill:#ffffff" />
<path
class="cls-3"
d="m 8.9532003,4.8523361 0.0625,0.6933 a 1.7072,1.7072 0 0 1 0.5918,-0.5752 1.577,1.577 0 0 1 0.8046997,-0.207 1.5089,1.5089 0 0 1 1.1689,0.456 2.0477,2.0477 0 0 1 0.4189,1.42 v 3.0238 h -1.0781 v -3.015 a 1.0794,1.0794 0 0 0 -0.2236,-0.7705 0.91,0.91 0 0 0 -0.6807,-0.2295 1.1347,1.1347 0 0 0 -0.5634997,0.14 1.1724,1.1724 0 0 0 -0.4072,0.3848 v 3.4902 h -1.0781 v -4.81 z"
id="path24709"
style="fill:#ffffff" />
<path
class="cls-3"
d="M 2.0691,9.6632999 H 0.9959 v -1.0362 h 1.0732 z"
id="path117107"
style="fill:#ffffff" />
<path
class="cls-3"
d="m 12.666667,7.3923242 a 3.1315,3.2168068 0 0 1 0.502,-1.903992 1.61,1.6538588 0 0 1 1.3916,-0.72626 1.5114,1.5525728 0 0 1 0.7568,0.189526 1.5977,1.6412237 0 0 1 0.5518,0.545773 l 0.1064,-0.64408 h 0.8955 v 4.941648 a 1.8158,1.8652651 0 0 1 -0.5722,1.4746058 2.3664,2.4308643 0 0 1 -1.6231,0.520712 3.177,3.2635462 0 0 1 -0.7558,-0.102725 3.4991,3.5944207 0 0 1 -0.7334,-0.271811 l 0.23,-0.871717 a 2.5879,2.6583983 0 0 0 0.5879,0.220651 2.8033,2.8796661 0 0 0 0.6621,0.08023 1.2333,1.2668969 0 0 0 0.8565,-0.257734 1.0081,1.0355622 0 0 0 0.2705,-0.7925168 v -0.506638 a 1.5212,1.5626398 0 0 1 -0.5342,0.449418 1.6052,1.6489281 0 0 1 -0.708,0.15347 1.6524,1.6974139 0 0 1 -1.3828,-0.663085 2.6766,2.7495146 0 0 1 -0.502,-1.739428 z m 1.0782,0.09636 a 1.8947,1.9463145 0 0 0 0.2636,1.08939 0.9131,0.93797421 0 0 0 0.8184,0.408328 1.0982,1.1281166 0 0 0 0.583,-0.148539 1.0612,1.0901087 0 0 0 0.3838,-0.426305 v -2.165019 a 1.1509,1.1822522 0 0 0 -0.3887,-0.422402 1.0458,1.0742892 0 0 0 -0.5693,-0.15347 0.8841,0.90818421 0 0 0 -0.8223,0.479516 2.4018,2.4672286 0 0 0 -0.2685,1.241935 z"
id="path27319-3"
style="fill:#ffffff;stroke-width:1" />
<path
class="cls-4"
d="M 23.9822,16.9961 A 6.9925,6.9925 0 1 1 16.9898,9.9921999 6.9982,6.9982 0 0 1 23.9822,16.9961 Z"
id="path117115"
style="fill:#bf2641;stroke:none" />
<line
class="cls-5"
x1="17.0933"
y1="13.625401"
x2="17.0933"
y2="20.629299"
id="line117117"
style="fill:none;stroke:#f5f5f5;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round" />
<polyline
class="cls-5"
points="15.344 17.166 18.093 14.413 20.843 17.166"
id="polyline117119"
transform="translate(-1.0002,-1.0067)"
style="fill:none;stroke:#f5f5f5;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round" />
</svg>

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -175,7 +175,7 @@ TOOL_ACTION EE_ACTIONS::showComponentTree( "eeschema.SymbolLibraryControl.showCo
TOOL_ACTION EE_ACTIONS::exportSymbolView( "eeschema.SymbolLibraryControl.exportSymbolView",
AS_GLOBAL, 0, "",
_( "Export View as PNG..." ), _( "Create PNG file from the current view" ),
plot_xpm );
export_png_xpm );
TOOL_ACTION EE_ACTIONS::exportSymbolAsSVG( "eeschema.SymbolLibraryControl.exportSymbolAsSVG",
AS_GLOBAL, 0, "",

View File

@ -89,7 +89,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
submenuExport->Add( _( "Export View as &PNG..." ),
_( "Create a PNG file from the current view" ),
ID_FPEDIT_SAVE_PNG,
plot_xpm );
export_png_xpm );
fileMenu->Add( submenuExport );