Add icons in buttons

This commit is contained in:
Mauricio Baeza 2020-12-19 22:06:07 -06:00
parent a797314ff3
commit c72d5e58f4
5 changed files with 259 additions and 7 deletions

Binary file not shown.

52
source/images/close.svg Normal file
View File

@ -0,0 +1,52 @@
<?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"
viewBox="0 0 32 32"
version="1.1"
x="0px"
y="0px"
id="svg18"
width="32"
height="32">
<metadata
id="metadata24">
<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>9.4</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs22" />
<title
id="title2">9.4</title>
<desc
id="desc4">Created with Sketch.</desc>
<g
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd"
id="g12"
transform="scale(0.66666667)">
<g
fill-rule="nonzero"
fill="#000000"
id="g10">
<g
id="g8">
<path
d="m 26.828427,24 6.366079,6.366079 c 0.779879,0.779879 0.784376,2.039815 -0.0021,2.826309 -0.781048,0.781049 -2.047059,0.781368 -2.826309,0.0021 L 24,26.828427 17.633921,33.194506 c -0.779879,0.779879 -2.039815,0.784376 -2.826309,-0.0021 -0.781049,-0.781048 -0.781368,-2.047059 -0.0021,-2.826309 L 21.171573,24 14.805494,17.633921 c -0.779879,-0.779879 -0.784376,-2.039815 0.0021,-2.826309 0.781048,-0.781049 2.047059,-0.781368 2.826309,-0.0021 L 24,21.171573 30.366079,14.805494 c 0.779879,-0.779879 2.039815,-0.784376 2.826309,0.0021 0.781049,0.781048 0.781368,2.047059 0.0021,2.826309 z M 24,48 C 10.745166,48 0,37.254834 0,24 0,10.745166 10.745166,0 24,0 37.254834,0 48,10.745166 48,24 48,37.254834 37.254834,48 24,48 Z m 0,-4 C 35.045695,44 44,35.045695 44,24 44,12.954305 35.045695,4 24,4 12.954305,4 4,12.954305 4,24 4,35.045695 12.954305,44 24,44 Z"
id="path6" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

87
source/images/insert.svg Normal file
View File

@ -0,0 +1,87 @@
<?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"
version="1.1"
id="Capa_1"
x="0px"
y="0px"
width="25.061001"
height="31.99976"
viewBox="0 0 25.061001 31.99976"
xml:space="preserve"><metadata
id="metadata41"><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></cc:Work></rdf:RDF></metadata><defs
id="defs39" />
<g
id="g4"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
<path
d="m 13.874,25.477 0.646,1.27 H 3.22 V 0 H 25.574 V 20.073 L 24.218,19.415 V 1.269 H 4.578 V 25.477 Z M 7.528,8.308 C 7.415,8.414 7.281,8.502 7.128,8.57 6.973,8.639 6.81,8.688 6.639,8.722 L 6.848,9.69 7.945,9.453 8.528,12.151 9.927,11.848 8.915,7.165 7.813,7.405 C 7.845,7.599 7.834,7.772 7.779,7.924 7.724,8.076 7.641,8.201 7.528,8.308 Z m 6.859,0.26 -1.184,0.255 -0.256,-1.184 -1.03,0.222 0.257,1.186 -1.184,0.254 0.222,1.03 1.184,-0.256 0.256,1.184 1.029,-0.222 -0.255,-1.186 1.184,-0.256 z m 1.671,-2.105 c -0.113,0.105 -0.246,0.193 -0.4,0.262 -0.153,0.068 -0.317,0.119 -0.488,0.152 l 0.209,0.968 1.096,-0.237 0.584,2.698 1.398,-0.303 L 17.442,5.32 16.34,5.557 c 0.032,0.196 0.021,0.369 -0.033,0.52 -0.051,0.151 -0.135,0.279 -0.249,0.386 z M 23.315,8.558 23.09,7.529 19.694,8.265 19.918,9.294 Z M 19.344,6.642 19.568,7.671 22.965,6.936 22.741,5.907 Z m 1.666,12.6 v -6.818 h -3.238 v 6.818 1.458 1.435 l -1.09,-2.234 -3.055,-0.008 1.255,2.573 H 14.87 l 0.809,1.632 0.104,0.215 h 0.002 l 1.988,4.022 v 10e-4 h 1.34 v 1.359 h 6.023 v -1.359 h 1.34 v -6.222 z"
id="path2" />
</g>
<g
id="g6"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g8"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g10"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g12"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g14"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g16"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g18"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g20"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g22"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g24"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g26"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g28"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g30"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g32"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g34"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

113
source/images/preview.svg Normal file
View File

@ -0,0 +1,113 @@
<?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"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
viewBox="0 0 31.999998 32.000061"
xml:space="preserve"
sodipodi:docname="preview.svg"
width="31.999998"
height="32.000061"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2560"
inkscape:window-height="1006"
id="namedview23"
showgrid="false"
inkscape:zoom="1.6074219"
inkscape:cx="16.0005"
inkscape:cy="16.00003"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" /><metadata
id="metadata43"><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><defs
id="defs41" />
<g
id="g6"
transform="scale(0.06250012)">
<g
id="g4">
<path
d="M 509.107,130.133 364.04,2.133 c -1.741,-1.536 -3.968,-2.236 -6.101,-2.116 L 8.533,0 C 6.263,0 4.096,0.896 2.5,2.5 0.905,4.105 0,6.263 0,8.533 v 358.4 c 0,4.719 3.814,8.533 8.533,8.533 h 179.2 c 0.205,0 0.384,-0.102 0.58,-0.119 18.765,20.966 45.935,34.253 76.22,34.253 13.909,0 27.179,-2.816 39.279,-7.859 l 90.735,107.238 c 1.63,1.911 4.011,3.021 6.519,3.021 27.844,0 42.667,-19.823 42.667,-34.133 0,-2.014 -0.717,-3.977 -2.014,-5.513 l -81.988,-96.888 h 143.735 c 4.719,0 8.533,-3.814 8.533,-8.533 v -230.4 c 10e-4,-2.449 -1.049,-4.778 -2.892,-6.4 z M 366.933,27.443 480.896,128 H 366.933 Z m -102.4,365.09 c -47.053,0 -85.333,-38.281 -85.333,-85.333 0,-47.052 38.281,-85.333 85.333,-85.333 47.052,0 85.333,38.281 85.333,85.333 0,47.052 -38.28,85.333 -85.333,85.333 z m 161.647,87.894 c -1.638,5.009 -7.697,13.047 -21.308,14.336 L 319.274,393.592 c 7.228,-4.599 13.824,-10.061 19.678,-16.265 z M 494.933,358.4 h -141.85 c 8.755,-15.078 13.85,-32.538 13.85,-51.2 0,-56.465 -45.935,-102.4 -102.4,-102.4 -56.465,0 -102.4,45.935 -102.4,102.4 0,18.662 5.094,36.122 13.85,51.2 H 17.067 V 17.067 l 332.8,0.017 v 119.45 c 0,4.719 3.814,8.533 8.533,8.533 h 136.533 z"
id="path2" />
</g>
</g>
<g
id="g8"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g10"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g12"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g14"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g16"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g18"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g20"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g22"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g24"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g26"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g28"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g30"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g32"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g34"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g36"
transform="translate(-239.9995,-239.99997)">
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -132,7 +132,7 @@ def _create_dialog():
'Name': 'dialog',
'Title': TITLE,
'Width': 270,
'Height': 250,
'Height': 260,
}
dlg = app.create_dialog(args)
dlg.id = ID_EXTENSION
@ -165,8 +165,8 @@ def _create_dialog():
'Name': 'cmd_preview',
'Label': _('Preview'),
'Width': 70,
'Height': 15,
'ImageURL': 'view.png',
'Height': 20,
'ImageURL': 'preview.svg',
'ImagePosition': 1,
}
dlg.add_control(args)
@ -184,8 +184,8 @@ def _create_dialog():
'Name': 'cmd_insert',
'Label': _('Insert'),
'Width': 70,
'Height': 15,
'ImageURL': 'insert.png',
'Height': 20,
'ImageURL': 'insert.svg',
'ImagePosition': 1,
}
dlg.add_control(args)
@ -194,8 +194,8 @@ def _create_dialog():
'Name': 'cmd_close',
'Label': _('Close'),
'Width': 70,
'Height': 15,
'ImageURL': 'close.png',
'Height': 20,
'ImageURL': 'close.svg',
'ImagePosition': 1,
}
dlg.add_control(args)