button graphics

This commit is contained in:
Piotr Miller
2021-04-22 14:36:49 +02:00
parent 6c9f04db79
commit 0b6273d262
4 changed files with 240 additions and 2 deletions

81
nwg-shell.svg Normal file
View File

@@ -0,0 +1,81 @@
<?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"
xml:space="preserve"
width="48"
height="48"
version="1.1"
style="clip-rule:evenodd;fill-rule:evenodd;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision"
viewBox="0 0 1268.7499 1268.7499"
id="svg17"
sodipodi:docname="nwg-shell.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)"><metadata
id="metadata21"><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><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1360"
inkscape:window-height="719"
id="namedview19"
showgrid="false"
units="px"
inkscape:zoom="9.4401039"
inkscape:cx="22.607833"
inkscape:cy="20.391725"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg17" />
<defs
id="defs4">
<style
type="text/css"
id="style2">
<![CDATA[
.fil0 {fill:#00AAD4}
.fil1 {fill:#FF8800}
]]>
</style>
</defs>
<path
id="path13-6"
style="clip-rule:evenodd;opacity:0.3;fill:#000000;fill-rule:evenodd;stroke-width:3.26052;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision"
d="m 171.96896,598.67013 c 6.52106,-117.37814 42.38691,-228.23527 101.07647,-316.26887 61.95009,-94.55461 146.7239,-169.5462 251.0609,-205.411744 0,65.210084 0,133.680664 0,198.890734 0,68.47058 0,133.68066 0,198.89073 -45.64744,22.82353 -81.51328,68.47058 -94.5554,123.89915 -48.90797,0 -94.55541,0 -136.94231,0 -42.38691,0 -81.51328,0 -120.63966,0 z m 352.13737,639.05877 c -104.337,-39.1261 -192.37134,-120.6386 -251.0609,-215.1933 -58.68956,-91.29408 -94.55541,-205.41172 -101.07647,-322.78985 39.12638,3.2605 78.25275,3.2605 120.63966,6.521 42.3869,3.26051 88.03434,3.26051 136.94231,6.52101 13.04212,58.68907 48.90796,104.33612 94.5554,127.15965 0,68.47058 0,133.68066 0,198.89079 0,68.4705 0,133.6806 0,198.8907 z M 1166.431,751.91381 c -19.5632,169.5462 -94.5554,313.00839 -202.153,404.30249 -97.81589,88.0336 -221.71608,127.1596 -342.35573,107.5966 0,-68.4706 0,-136.9411 0,-205.4117 0,-68.47061 0,-136.94119 0,-208.67228 48.90796,-13.04201 91.29487,-58.68907 110.85806,-120.63864 61.95009,3.2605 130.42125,6.52101 198.89237,9.78151 74.9922,3.26051 149.9845,6.52101 234.7583,13.04202 z M 621.92227,54.16599 c 123.90018,-9.781512 244.53984,35.865541 345.61633,127.15965 104.337,97.81512 179.3292,244.53779 198.8924,417.34449 -81.5133,0 -159.7661,0 -234.7583,0 -68.47112,0 -136.94228,0 -198.89237,0 C 713.21714,536.72056 674.09077,487.813 621.92227,471.51048 c 0,-68.47058 0,-140.20166 0,-208.67224 0,-68.47058 0,-136.94116 0,-208.67225 z" /><g
id="Warstwa_x0020_1"
transform="matrix(3.2605312,0,0,3.2605038,-34.125643,-27.694864)">
<metadata
id="CorelCorpID_0Corel-Layer" />
<g
id="_1822077261776">
<path
class="fil0"
d="m 189,17 c 38,-3 75,11 106,39 32,30 55,75 61,128 -25,0 -49,0 -72,0 -21,0 -42,0 -61,0 -6,-19 -18,-34 -34,-39 0,-21 0,-43 0,-64 0,-21 0,-42 0,-64 z"
id="path7" />
<path
class="fil1"
d="m 356,231 c -6,52 -29,96 -62,124 -30,27 -68,39 -105,33 0,-21 0,-42 0,-63 0,-21 0,-42 0,-64 15,-4 28,-18 34,-37 19,1 40,2 61,3 23,1 46,2 72,4 z"
id="path9" />
<path
class="fil0"
d="M 159,380 C 127,368 100,343 82,314 64,286 53,251 51,215 c 12,1 24,1 37,2 13,1 27,1 42,2 4,18 15,32 29,39 0,21 0,41 0,61 0,21 0,41 0,61 z"
id="path11" />
<path
class="fil1"
d="m 51,184 c 2,-36 13,-70 31,-97 19,-29 45,-52 77,-63 0,20 0,41 0,61 0,21 0,41 0,61 -14,7 -25,21 -29,38 -15,0 -29,0 -42,0 -13,0 -25,0 -37,0 z"
id="path13" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,78 @@
<?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"
xml:space="preserve"
width="16"
height="16"
version="1.1"
style="clip-rule:evenodd;fill-rule:evenodd;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision"
viewBox="0 0 422.91663 422.91663"
id="svg17"
sodipodi:docname="nwg-shell.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)"><metadata
id="metadata21"><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><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1360"
inkscape:window-height="713"
id="namedview19"
showgrid="false"
units="px"
inkscape:zoom="26.67204"
inkscape:cx="8.7922761"
inkscape:cy="8.3652788"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg17" />
<defs
id="defs4">
<style
type="text/css"
id="style2">
<![CDATA[
.fil0 {fill:#00AAD4}
.fil1 {fill:#FF8800}
]]>
</style>
</defs>
<path
class="fil0"
d="m 199.09804,26.828354 c 37.70718,-2.976857 74.42206,10.915144 105.18318,38.699147 31.75341,29.768574 54.57618,74.421439 60.52994,127.012579 -24.80735,0 -48.62241,0 -71.44517,0 -20.83818,0 -41.67636,0 -60.52995,0 -5.95376,-18.85343 -17.86129,-33.73771 -33.738,-38.69914 0,-20.83801 0,-42.66829 0,-63.506294 0,-20.838002 0,-41.676004 0,-63.506292 z"
id="path7"
style="stroke-width:0.99229;fill:#444444;fill-opacity:1" /><path
class="fil1"
d="m 364.81116,239.17752 c -5.95376,51.59886 -28.77653,95.25943 -61.52223,123.04343 -29.76883,26.79172 -67.476,38.69915 -104.19089,32.74544 0,-20.83801 0,-41.67601 0,-62.51401 0,-20.838 0,-41.676 0,-63.50629 14.88442,-3.96914 27.78424,-17.86114 33.738,-36.71458 18.85359,0.99229 39.69177,1.98458 60.52995,2.97686 22.82276,0.99229 45.64553,1.98457 71.44517,3.96915 z"
id="path9"
style="stroke-width:0.99229;fill:#444444;fill-opacity:1" /><path
class="fil0"
d="M 169.32922,387.0281 C 137.57581,375.12067 110.78387,350.31353 92.92257,321.53724 75.061276,293.75323 64.14604,259.02323 62.161452,223.30094 c 11.90753,0.99229 23.815059,0.99229 36.714883,1.98457 12.899825,0.99229 26.791945,0.99229 41.676355,1.98458 3.96918,17.86114 14.88441,31.75314 28.77653,38.69914 0,20.838 0,40.68372 0,60.52944 0,20.838 0,40.68371 0,60.52943 z"
id="path11"
style="stroke-width:0.99229;fill:#444444;fill-opacity:1" /><path
class="fil1"
d="m 62.161452,192.54008 c 1.984588,-35.72229 12.899824,-69.46 30.761118,-96.25172 18.85359,-28.776288 44.65324,-51.598861 76.40665,-62.514005 0,19.845716 0,40.683718 0,60.529434 0,20.838001 0,40.683721 0,60.529431 -13.89212,6.946 -24.80735,20.838 -28.77653,37.70686 -14.88441,0 -28.77653,0 -41.676355,0 -12.899824,0 -24.807353,0 -36.714883,0 z"
id="path13"
style="stroke-width:0.99229;fill:#444444;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -0,0 +1,78 @@
<?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"
xml:space="preserve"
width="16"
height="16"
version="1.1"
style="clip-rule:evenodd;fill-rule:evenodd;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision"
viewBox="0 0 422.91663 422.91663"
id="svg17"
sodipodi:docname="nwg-shell.svg"
inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)"><metadata
id="metadata21"><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><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1360"
inkscape:window-height="713"
id="namedview19"
showgrid="false"
units="px"
inkscape:zoom="26.67204"
inkscape:cx="8.7922761"
inkscape:cy="8.3652788"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg17" />
<defs
id="defs4">
<style
type="text/css"
id="style2">
<![CDATA[
.fil0 {fill:#00AAD4}
.fil1 {fill:#FF8800}
]]>
</style>
</defs>
<path
class="fil0"
d="m 199.09804,26.828354 c 37.70718,-2.976857 74.42206,10.915144 105.18318,38.699147 31.75341,29.768574 54.57618,74.421439 60.52994,127.012579 -24.80735,0 -48.62241,0 -71.44517,0 -20.83818,0 -41.67636,0 -60.52995,0 -5.95376,-18.85343 -17.86129,-33.73771 -33.738,-38.69914 0,-20.83801 0,-42.66829 0,-63.506294 0,-20.838002 0,-41.676004 0,-63.506292 z"
id="path7"
style="stroke-width:0.99229;fill:#ffffff;fill-opacity:1" /><path
class="fil1"
d="m 364.81116,239.17752 c -5.95376,51.59886 -28.77653,95.25943 -61.52223,123.04343 -29.76883,26.79172 -67.476,38.69915 -104.19089,32.74544 0,-20.83801 0,-41.67601 0,-62.51401 0,-20.838 0,-41.676 0,-63.50629 14.88442,-3.96914 27.78424,-17.86114 33.738,-36.71458 18.85359,0.99229 39.69177,1.98458 60.52995,2.97686 22.82276,0.99229 45.64553,1.98457 71.44517,3.96915 z"
id="path9"
style="stroke-width:0.99229;fill:#ffffff;fill-opacity:1" /><path
class="fil0"
d="M 169.32922,387.0281 C 137.57581,375.12067 110.78387,350.31353 92.92257,321.53724 75.061276,293.75323 64.14604,259.02323 62.161452,223.30094 c 11.90753,0.99229 23.815059,0.99229 36.714883,1.98457 12.899825,0.99229 26.791945,0.99229 41.676355,1.98458 3.96918,17.86114 14.88441,31.75314 28.77653,38.69914 0,20.838 0,40.68372 0,60.52944 0,20.838 0,40.68371 0,60.52943 z"
id="path11"
style="stroke-width:0.99229;fill:#ffffff;fill-opacity:1" /><path
class="fil1"
d="m 62.161452,192.54008 c 1.984588,-35.72229 12.899824,-69.46 30.761118,-96.25172 18.85359,-28.776288 44.65324,-51.598861 76.40665,-62.514005 0,19.845716 0,40.683718 0,60.529434 0,20.838001 0,40.683721 0,60.529431 -13.89212,6.946 -24.80735,20.838 -28.77653,37.70686 -14.88441,0 -28.77653,0 -41.676355,0 -12.899824,0 -24.807353,0 -36.714883,0 z"
id="path13"
style="stroke-width:0.99229;fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -12,12 +12,13 @@ class MenuStart(Gtk.Button):
Gtk.Button.__init__(self)
self.set_always_show_image(True)
self.settings = settings
self.set_property("name", "button-start")
check_key(settings, "icon", "dialog-error")
check_key(settings, "icon-size", 16)
check_key(settings, "icon-size", 20)
image = Gtk.Image()
update_image(image, "start-here", settings["icon-size"], icons_path)
update_image(image, "nwg-shell", settings["icon-size"], icons_path)
self.set_image(image)
self.connect("clicked", self.on_click)