Shrink appearance manager bitmap buttons to 16x16

Finish off 38cc2f106b
This commit is contained in:
Michael Kavanagh 2021-02-06 15:52:57 +00:00 committed by Jeff Young
parent 54cd66d778
commit 7cc28a5a02
7 changed files with 133 additions and 85 deletions

View File

@ -74,6 +74,8 @@ set( BMAPS_SMALL
icon_pagelayout_editor_16
icon_pcbcalculator_16
icon_pcbnew_16
list_nets_16
options_generic_16
pinorient_right
pinorient_left
pinorient_up

View File

@ -0,0 +1,38 @@
/* 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, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff,
0x61, 0x00, 0x00, 0x01, 0x4f, 0x49, 0x44, 0x41, 0x54, 0x38, 0xcb, 0x63, 0x48, 0x4a, 0x4a, 0x52,
0x4a, 0x48, 0x48, 0xd8, 0x03, 0xc4, 0x6f, 0x80, 0xf8, 0x1d, 0x01, 0xfc, 0x16, 0x88, 0xf7, 0x03,
0xb1, 0x2a, 0x03, 0x0c, 0x40, 0x05, 0xfe, 0x93, 0x88, 0x8f, 0x22, 0x1b, 0xf0, 0x05, 0x24, 0x08,
0x02, 0x30, 0x05, 0xf8, 0x00, 0x54, 0xcd, 0x1f, 0xa0, 0x56, 0x46, 0x98, 0x01, 0x3f, 0xc8, 0x70,
0xc1, 0x7f, 0xea, 0x1b, 0x40, 0xa2, 0x17, 0x48, 0x73, 0x41, 0x62, 0x7c, 0xc2, 0xff, 0x82, 0xf0,
0xe8, 0xff, 0x95, 0x81, 0x11, 0xff, 0xb3, 0x23, 0x63, 0x48, 0x33, 0xa0, 0xc6, 0x3f, 0xfc, 0xff,
0x26, 0x7d, 0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, 0x0d, 0xf7, 0xab, 0x3b, 0xbe, 0x02,
0x29, 0xbe, 0x92, 0xd7, 0xf0, 0xff, 0xf5, 0x9e, 0x23, 0xff, 0x2f, 0xa6, 0x94, 0x83, 0x35, 0x1f,
0x50, 0x73, 0xdc, 0xbb, 0x5f, 0xc1, 0x81, 0x83, 0x81, 0x10, 0xd8, 0xaf, 0xed, 0x20, 0x01, 0xd4,
0xb0, 0x00, 0xa8, 0xe1, 0x23, 0xd8, 0x56, 0x55, 0xa7, 0x5b, 0x40, 0x76, 0xe5, 0x36, 0x15, 0x4f,
0x76, 0x90, 0x3c, 0x00, 0xb3, 0x1b, 0x11, 0xc1, 0x83, 0x34, 0xa0, 0xdc, 0x00, 0x00, 0x00, 0x00,
0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE list_nets_16_xpm[1] = {{ png, sizeof( png ), "list_nets_16_xpm" }};
//EOF

View File

@ -0,0 +1,29 @@
/* 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, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff,
0x61, 0x00, 0x00, 0x00, 0xc2, 0x49, 0x44, 0x41, 0x54, 0x38, 0xcb, 0x63, 0x60, 0xa0, 0x26, 0x90,
0x68, 0x38, 0xae, 0x20, 0xd5, 0x70, 0x64, 0xb2, 0x54, 0xc3, 0xa1, 0x00, 0xb2, 0x0d, 0x91, 0x6a,
0x3a, 0x9c, 0x25, 0xd5, 0x78, 0xe4, 0x1f, 0x10, 0x4f, 0x23, 0x5a, 0x93, 0x78, 0xc3, 0x51, 0x1d,
0x86, 0xff, 0xff, 0x19, 0xe1, 0x86, 0x34, 0x1e, 0x79, 0x00, 0x32, 0x44, 0xb2, 0xf9, 0xb8, 0x26,
0x91, 0xb6, 0x1e, 0xa9, 0x93, 0x6a, 0x38, 0x3a, 0x57, 0xa1, 0x61, 0x3f, 0x87, 0x74, 0xe3, 0x21,
0x67, 0xa0, 0xe6, 0xff, 0x60, 0xdc, 0x70, 0xd4, 0x8d, 0x48, 0xbf, 0x1f, 0xd2, 0x02, 0x6a, 0xf8,
0x09, 0xc4, 0xbf, 0xe0, 0x9a, 0x81, 0x58, 0xb2, 0xf1, 0x70, 0x0b, 0xd1, 0xde, 0x90, 0x6e, 0x38,
0x1a, 0x02, 0xd4, 0xf4, 0x06, 0xd9, 0x00, 0x08, 0x3e, 0xdc, 0x40, 0xb4, 0x21, 0xda, 0x0d, 0x57,
0xd9, 0x80, 0xb1, 0x20, 0x07, 0x0c, 0xc8, 0x24, 0xa0, 0xe6, 0xbf, 0x64, 0x19, 0x82, 0x08, 0x97,
0xa3, 0x11, 0x40, 0xcd, 0x7f, 0x10, 0x86, 0x1c, 0xed, 0x20, 0xd7, 0x90, 0xdf, 0x88, 0x40, 0x3d,
0xdc, 0x39, 0x84, 0x0d, 0x01, 0x46, 0x69, 0x2c, 0x4a, 0x98, 0x34, 0x1d, 0x49, 0xa1, 0xc8, 0x10,
0xe9, 0x86, 0x23, 0xfd, 0xe4, 0xe5, 0x95, 0x86, 0xc3, 0x2e, 0xd2, 0x8d, 0x47, 0x6a, 0x65, 0x1a,
0x8e, 0x09, 0x51, 0x25, 0x07, 0x03, 0x00, 0x28, 0x74, 0x91, 0x27, 0xb1, 0x4d, 0xc4, 0xee, 0x00,
0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
};
const BITMAP_OPAQUE options_generic_16_xpm[1] = {{ png, sizeof( png ), "options_generic_16_xpm" }};
//EOF

View File

@ -277,6 +277,7 @@ EXTERN_BITMAP( library_archive_as_xpm )
EXTERN_BITMAP( library_xpm )
EXTERN_BITMAP( library_table_xpm )
EXTERN_BITMAP( lines90_xpm )
EXTERN_BITMAP( list_nets_16_xpm )
EXTERN_BITMAP( list_nets_xpm )
EXTERN_BITMAP( load_drill_xpm )
EXTERN_BITMAP( load_gerber_xpm )
@ -327,6 +328,7 @@ EXTERN_BITMAP( normal_xpm )
EXTERN_BITMAP( open_project_xpm )
EXTERN_BITMAP( options_3drender_xpm )
EXTERN_BITMAP( options_board_xpm )
EXTERN_BITMAP( options_generic_16_xpm )
EXTERN_BITMAP( options_generic_xpm )
EXTERN_BITMAP( options_pad_xpm )
EXTERN_BITMAP( options_schematic_xpm )

View File

@ -11,8 +11,8 @@
data-name="Слой 1"
viewBox="0 0 16 16"
version="1.1"
sodipodi:docname="list_nets-16.svg"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
sodipodi:docname="list_nets_16.svg"
inkscape:version="1.0.1 (c497b03c, 2020-09-10)"
inkscape:export-filename="/Users/jeff/kicad_dev/kicad/bitmaps_png/png_16/list_nets_16.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
@ -27,18 +27,18 @@
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-width="1280"
inkscape:window-height="715"
id="namedview30"
showgrid="true"
inkscape:zoom="21.081183"
inkscape:cx="15.668224"
inkscape:cy="9.2124204"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:zoom="35.608235"
inkscape:cx="6.327365"
inkscape:cy="6.697435"
inkscape:window-x="0"
inkscape:window-y="23"
inkscape:window-maximized="1"
inkscape:document-rotation="0"
inkscape:current-layer="Слой_1"
inkscape:current-layer="g883"
inkscape:snap-global="false">
<inkscape:grid
type="xygrid"
@ -94,70 +94,16 @@
d="m 6.6090054,-3.528125 h 9.3169896 a 2.3308466,2.3308466 0 0 1 2.330846,2.3308466 V 8.132838 a 2.3308466,2.3308466 0 0 1 -2.330846,2.330847 H 6.6089387 A 2.3308466,2.3308466 0 0 1 4.2780921,8.132838 V -1.1972117 A 2.3309133,2.3309133 0 0 1 6.6090054,-3.528125 Z"
class="cls-1"
inkscape:connector-curvature="0" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158178"
y2="-1"
x2="15.303193"
y1="-1"
x1="9.5"
class="cls-2" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158180"
y2="2"
x2="15.164187"
y1="2"
x1="9.5"
class="cls-2" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158182"
y2="4.9782896"
x2="15.378433"
y1="4.9782896"
x1="9.6117582"
class="cls-2" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158184"
y2="7.9099226"
x2="15.356082"
y1="7.9099226"
x1="9.589406"
class="cls-2" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158186"
y2="-1"
x2="7.0257468"
y1="-1"
x1="7"
class="cls-2" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158188"
y2="2"
x2="7.031786"
y1="2"
x1="7"
class="cls-2" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158190"
y2="5"
x2="7.031786"
y1="5"
x1="7"
class="cls-2" />
<line
style="fill:none;stroke:#ffffff;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="line158192"
y2="8"
x2="7.031786"
y1="8"
x1="7"
class="cls-2" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.2513124,4.4244393 v 1 h 6.9999996 v -1 z"
id="path876"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.2513124,7.4244393 v 1 h 6.9999996 v -1 z"
id="path878"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#bf2641;stroke:none;stroke-width:1;stroke-opacity:1"
id="path158194"
@ -176,5 +122,35 @@
class="cls-4"
inkscape:connector-curvature="0"
style="fill:#ffffff;stroke-width:1" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.2513124,-1.5755607 h 1 v 1 h -1 z"
id="path855"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.2513124,1.4244393 h 1 v 1 h -1 z"
id="path866"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.2513124,4.4244393 h 1 v 1 h -1 z"
id="path868"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.2513124,7.4244393 h 1 v 1 h -1 z"
id="path870"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.2513124,-1.5755607 v 1 h 6.9999996 v -1 z"
id="path872"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 9.2513124,1.4244393 v 1 h 6.9999996 v -1 z"
id="path874"
sodipodi:nodetypes="ccccc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -12,7 +12,7 @@
viewBox="0 0 16 16"
version="1.1"
sodipodi:docname="options_generic_16.svg"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
inkscape:version="1.0.1 (c497b03c, 2020-09-10)"
width="16"
height="16"
inkscape:export-filename="/Users/jeff/kicad_dev/kicad/bitmaps_png/png_16/options_generic_16.png"
@ -27,15 +27,15 @@
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1609"
inkscape:window-height="1286"
inkscape:window-width="1280"
inkscape:window-height="715"
id="namedview30"
showgrid="true"
inkscape:zoom="27.961538"
inkscape:cx="11.104539"
inkscape:cy="8.7083906"
inkscape:zoom="27.642408"
inkscape:cx="12.982194"
inkscape:cy="13.002553"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-y="23"
inkscape:window-maximized="0"
inkscape:document-rotation="0"
inkscape:current-layer="Слой_1"
@ -87,8 +87,9 @@
id="title26097">options_generic</title>
<path
class="cls-2"
d="M 14.224779,12.213597 7.1788171,5.1781293 a 2.695572,2.695572 0 0 0 -0.03115,-1.85823 C 6.5299051,1.7971473 5.0527593,1.2093513 3.4950273,1.3963953 l 1.718838,1.736592 -0.351978,1.550406 -1.599906,0.404778 -1.791504,-1.66221 a 3.2538,3.2538 0 0 0 2.031546,3.57984 2.672076,2.672076 0 0 0 1.6764,0.04 l 7.1573697,7.1411997 a 1.374978,1.374978 0 0 0 1.936572,-0.04726 1.357356,1.357356 0 0 0 -0.04759,-1.926144 z m -0.759,1.770318 a 0.568788,0.568788 0 1 1 0.571758,-0.568854 0.57024,0.57024 0 0 1 -0.571824,0.568854 z"
d="M 14.224779,12.213597 7.1788171,5.1781293 C 7.3890429,4.5746113 7.378003,3.916032 7.1476671,3.3198993 6.5299051,1.7971473 5.0527593,1.2093513 3.4950273,1.3963953 l 1.718838,1.736592 -0.351978,1.550406 -1.599906,0.404778 -1.791504,-1.66221 c -0.2594996,1.5244205 0.5897471,3.0209001 2.031546,3.57984 0.5400316,0.1928694 1.1277842,0.2068935 1.6764,0.04 l 7.1573697,7.1411997 c 0.54893,0.518834 1.413603,0.497732 1.936572,-0.04726 0.521583,-0.543936 0.500218,-1.40863 -0.04759,-1.926144 z"
id="path26101"
inkscape:connector-curvature="0"
style="fill:#1a81c4;stroke-width:1" />
style="fill:#1a81c4;stroke-width:1"
sodipodi:nodetypes="cccccccccccccc" />
</svg>

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -423,10 +423,10 @@ APPEARANCE_CONTROLS::APPEARANCE_CONTROLS( PCB_BASE_FRAME* aParent, wxWindow* aFo
createControls();
m_btnNetInspector->SetBitmap( KiBitmap( list_nets_xpm ) );
m_btnNetInspector->SetBitmap( KiBitmap( list_nets_16_xpm ) );
m_btnNetInspector->SetPadding( 2 );
m_btnConfigureNetClasses->SetBitmap( KiBitmap( options_generic_xpm ) );
m_btnConfigureNetClasses->SetBitmap( KiBitmap( options_generic_16_xpm ) );
m_btnConfigureNetClasses->SetPadding( 2 );
m_txtNetFilter->SetHint( _( "Filter nets" ) );