M!109 - EShell: Use symbolic icons on GNOME
Closes https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/109 Helps https://gitlab.gnome.org/GNOME/evolution/-/issues/1848
This commit is contained in:
parent
e288c33552
commit
0142d8e250
@ -146,6 +146,11 @@ set(private_icons
|
||||
hicolor_status_32x32_online.png
|
||||
hicolor_status_32x32_aspect-ratio-lock.png
|
||||
hicolor_status_32x32_aspect-ratio-unlock.png
|
||||
hicolor_apps_scalable_evolution-mail-symbolic.svg
|
||||
hicolor_apps_scalable_evolution-memos-symbolic.svg
|
||||
hicolor_apps_scalable_evolution-tasks-symbolic.svg
|
||||
hicolor_actions_scalable_stock_task-symbolic.svg
|
||||
hicolor_actions_scalable_stock_insert-note-symbolic.svg
|
||||
)
|
||||
|
||||
# These icons were in gnome-icon-theme prior to GNOME 2.30.
|
||||
|
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
version="1.1"
|
||||
id="svg122"
|
||||
sodipodi:docname="hicolor_actions_scalable_insert-note-symbolic.svg"
|
||||
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs126" />
|
||||
<sodipodi:namedview
|
||||
id="namedview124"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="47.5625"
|
||||
inkscape:cx="7.9894875"
|
||||
inkscape:cy="8.021025"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1043"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g120" />
|
||||
<g
|
||||
fill="#474747"
|
||||
id="g120">
|
||||
<path
|
||||
d="M 1.094,16 C 0.525,16 0,15.497 0,14.937 V 1.063 C 0,0.502 0.525,0 1.094,0 H 11.906 C 12.464,0 12.98,0.485 13,1.031 V 8 L 11,6 V 2 H 2 V 14 H 7 L 8.3409166,12.722158 9.8401327,14.141627 8.344,15.656 C 8.1392663,15.869243 7.8585297,15.992896 7.563,16 Z"
|
||||
style="line-height:normal;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration-line:none;text-transform:none;marker:none"
|
||||
color="#000000"
|
||||
font-weight="400"
|
||||
font-family="Sans"
|
||||
overflow="visible"
|
||||
id="path116"
|
||||
sodipodi:nodetypes="ssssscccccccccccs" />
|
||||
<path
|
||||
d="M 11.111746,7.8322105 V 10.185014 H 8.6448342 v 1.568537 h 2.4669118 v 2.352806 h 1.64461 v -2.352806 h 2.466911 V 10.185014 H 12.756356 V 7.8322105 Z"
|
||||
style="fill:#2e3434;stroke-width:0.803061"
|
||||
id="path464" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
43
data/icons/hicolor_actions_scalable_stock_task-symbolic.svg
Normal file
43
data/icons/hicolor_actions_scalable_stock_task-symbolic.svg
Normal file
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
height="16px"
|
||||
viewBox="0 0 16 16"
|
||||
width="16px"
|
||||
version="1.1"
|
||||
id="svg448"
|
||||
sodipodi:docname="hicolor_actions_scalable_insert-task-symbolic.svg"
|
||||
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs452" />
|
||||
<sodipodi:namedview
|
||||
id="namedview450"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="47.5625"
|
||||
inkscape:cx="7.9894875"
|
||||
inkscape:cy="8.021025"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1043"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg448" />
|
||||
<path
|
||||
d="m 7 0 c -0.554688 0 -1 0.445312 -1 1 h -2 c -1.644531 0 -3 1.355469 -3 3 v 9 c 0 1.644531 1.355469 3 3 3 h 2 c 0.550781 0 1 -0.449219 1 -1 s -0.449219 -1 -1 -1 h -2 c -0.570312 0 -1 -0.429688 -1 -1 v -9 c 0 -0.570312 0.429688 -1 1 -1 h 1 v 1 c 0 0.554688 0.445312 1 1 1 h 4 c 0.554688 0 1 -0.445312 1 -1 v -1 h 1 c 0.570312 0 1 0.429688 1 1 v 2 c 0 0.550781 0.449219 1 1 1 s 1 -0.449219 1 -1 v -2 c 0 -1.644531 -1.355469 -3 -3 -3 h -2 c 0 -0.554688 -0.445312 -1 -1 -1 z m 0 0"
|
||||
fill="#2e3436"
|
||||
id="path444" />
|
||||
<path
|
||||
d="M 10.899854,8.8897829 V 11.242586 H 8.432942 v 1.568537 h 2.466912 v 2.352806 h 1.64461 v -2.352806 h 2.466911 V 11.242586 H 12.544464 V 8.8897829 Z"
|
||||
style="fill:#2e3434;stroke-width:0.803061"
|
||||
id="path464" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
44
data/icons/hicolor_apps_scalable_evolution-mail-symbolic.svg
Normal file
44
data/icons/hicolor_apps_scalable_evolution-mail-symbolic.svg
Normal file
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
height="16px"
|
||||
viewBox="0 0 16 16"
|
||||
width="16px"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="mail-read-symbolic.svg"
|
||||
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="47.4375"
|
||||
inkscape:cx="7.9894598"
|
||||
inkscape:cy="8.0210804"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1011"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
d="m 8 0.980469 c -0.480469 0 -0.960938 0.132812 -1.386719 0.390625 l -5.285156 3.253906 c -0.824219 0.507812 -1.328125 1.40625 -1.328125 2.375 v 6 c 0 1.644531 1.355469 3 3 3 h 10 c 1.644531 0 3 -1.355469 3 -3 v -6 c 0 -0.96875 -0.503906 -1.867188 -1.328125 -2.375 l -5.289063 -3.253906 c -0.421874 -0.257813 -0.902343 -0.390625 -1.382812 -0.390625 z m 0 2 c 0.117188 0 0.234375 0.035156 0.335938 0.097656 l 5.289062 3.25 c 0.085938 0.054687 0.164062 0.121094 0.222656 0.203125 c -0.042968 0.011719 -0.085937 0.03125 -0.125 0.050781 l -5.167968 3.445313 c -0.335938 0.226562 -0.773438 0.226562 -1.109376 0 l -5.167968 -3.445313 c -0.039063 -0.019531 -0.082032 -0.039062 -0.125 -0.050781 c 0.058594 -0.078125 0.132812 -0.148438 0.222656 -0.203125 l 5.285156 -3.25 c 0.105469 -0.066406 0.222656 -0.097656 0.339844 -0.097656 z m -6 4.621093 l 4.890625 3.257813 c 0.671875 0.449219 1.546875 0.449219 2.21875 0 l 4.890625 -3.257813 v 5.398438 c 0 0.5625 -0.4375 1 -1 1 h -10 c -0.5625 0 -1 -0.4375 -1 -1 z m 0 0"
|
||||
fill="#2e3436"
|
||||
fill-opacity="0.501961"
|
||||
id="path2" />
|
||||
<path
|
||||
style="fill:#000000;stroke-width:0.0210804"
|
||||
d="M 2.6034256,15.965479 C 2.2662404,15.922133 1.8569569,15.783491 1.5493692,15.608425 0.76009339,15.159204 0.22042361,14.401657 0.04875301,13.501976 0.01287203,13.313933 0.01054018,13.100395 0.01054018,10.002635 c 0,-3.1086534 0.0022173,-3.3099845 0.03841455,-3.4880362 C 0.1632953,5.9521657 0.39903243,5.4860728 0.76482258,5.0992057 1.052922,4.7945056 0.76591812,4.9787141 5.263571,2.2117634 6.0425931,1.7325099 6.7445694,1.3079809 6.8235183,1.2683655 7.1943429,1.0822912 7.5644513,0.99688697 8,0.99688697 c 0.4346502,0 0.8057421,0.0854528 1.1744137,0.27043703 0.1570804,0.078817 5.2410393,3.1986774 5.5650873,3.4151139 0.64876,0.4333167 1.061337,1.0613698 1.212048,1.8450663 0.03549,0.1845264 0.03791,0.4067687 0.03791,3.4751308 0,3.65733 0.0078,3.450543 -0.147108,3.913399 -0.345296,1.031901 -1.162527,1.765793 -2.245514,2.016521 l -0.200264,0.04636 -5.3227927,0.0028 c -3.0487475,0.0016 -5.3858361,-0.0053 -5.4703557,-0.0162 z M 13.198612,13.986388 c 0.349244,-0.06623 0.643514,-0.327922 0.764036,-0.679444 0.04513,-0.131641 0.04516,-0.133241 0.05122,-2.901986 0.0033,-1.52365 -0.0017,-2.7779844 -0.01108,-2.7874099 -0.0094,-0.00943 -1.136242,0.7288624 -2.504036,1.6406398 C 10.127954,10.17197 8.9361724,10.952169 8.8432148,10.996635 8.5518777,11.135996 8.3873726,11.169775 8,11.169775 c -0.3862725,0 -0.5392708,-0.03139 -0.8386568,-0.172062 C 7.0567317,10.948559 6.0033033,10.259761 4.501244,9.2583707 3.1334497,8.3464928 2.0066337,7.6081225 1.9972082,7.6175481 c -0.00943,0.00943 -0.01441,1.2637599 -0.011076,2.7874099 0.00606,2.768745 0.00609,2.770345 0.05122,2.901986 0.1175186,0.342762 0.4153079,0.612914 0.74754,0.678161 0.1365369,0.02681 10.2725098,0.02806 10.4137198,0.0013 z M 8.1563761,10.189501 c 0.076312,-0.01317 0.1861799,-0.0448 0.2441509,-0.0703 0.057971,-0.0255 1.2866941,-0.8339716 2.730496,-1.7966082 1.443802,-0.9626363 2.646173,-1.756938 2.671936,-1.7651151 0.02576,-0.00818 0.04684,-0.021789 0.04684,-0.030249 0,-0.055176 -0.294648,-0.2518056 -1.338603,-0.8932985 C 11.861924,5.2349645 10.661924,4.497428 9.8445323,3.9949635 9.027141,3.492499 8.3079498,3.0582483 8.2463296,3.0299618 8.1514477,2.9864067 8.1094868,2.9796955 7.9722848,2.9861312 7.7863382,2.9948533 7.7640519,3.0045461 7.3675889,3.2491263 7.0516924,3.4440044 4.0827116,5.2703051 3.6890646,5.5118864 2.5163984,6.2315516 2.2987706,6.3693196 2.229249,6.4360137 c -0.043478,0.04171 -0.079051,0.08247 -0.079051,0.090576 0,0.00811 0.026968,0.024141 0.059928,0.035631 0.03296,0.01149 1.2443143,0.8105204 2.6918978,1.7756231 1.4475832,0.9651025 2.665675,1.7693092 2.7068705,1.7871262 0.073621,0.03184 0.2889172,0.08235 0.3682991,0.0864 0.022239,0.0011 0.102871,-0.0087 0.1791832,-0.02187 z"
|
||||
id="path237" />
|
||||
</svg>
|
After Width: | Height: | Size: 4.8 KiB |
@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
version="1.1"
|
||||
id="svg122"
|
||||
sodipodi:docname="hicolor_apps_scalable_evolution-memos-symbolic.svg"
|
||||
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs126" />
|
||||
<sodipodi:namedview
|
||||
id="namedview124"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="11.313709"
|
||||
inkscape:cx="-28.814601"
|
||||
inkscape:cy="10.915961"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1043"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g120" />
|
||||
<g
|
||||
fill="#474747"
|
||||
id="g120">
|
||||
<path
|
||||
d="M 1.094,16 C 0.525,16 0,15.497 0,14.937 V 1.063 C 0,0.502 0.525,0 1.094,0 H 11.906 C 12.464,0 12.98,0.485 13,1.031 l -0.0021,12.09014 -2,-2 L 11,2 H 2 V 14 H 7 L 8.6875011,13.112995 10.186717,14.532464 8.344,15.656 C 8.0478967,15.784862 7.8585297,15.992896 7.563,16 Z"
|
||||
style="line-height:normal;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration-line:none;text-transform:none;marker:none"
|
||||
color="#000000"
|
||||
font-weight="400"
|
||||
font-family="Sans"
|
||||
overflow="visible"
|
||||
id="path116"
|
||||
sodipodi:nodetypes="ssssscccccccccccs" />
|
||||
<path
|
||||
style="fill:#2e3335;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.27909"
|
||||
d="m 3.0746864,3.626774 h 6.5443115 v 1 H 3.0746864 Z m 0,0"
|
||||
id="path372" />
|
||||
<path
|
||||
style="fill:#2e3335;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.19209"
|
||||
d="m 3.0746864,5.2555582 h 5.684338 v 1 h -5.684338 z m 0,0"
|
||||
id="path372-3" />
|
||||
<path
|
||||
style="fill:#2e3335;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.31412"
|
||||
d="m 3.0746864,6.8512613 h 6.907705 v 1 h -6.907705 z m 0,0"
|
||||
id="path372-6" />
|
||||
<path
|
||||
style="fill:#2e3335;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.16559"
|
||||
d="m 3.0746864,8.493107 h 5.4344508 v 1 H 3.0746864 Z m 0,0"
|
||||
id="path372-7" />
|
||||
<path
|
||||
style="fill:#2e3335;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.27909"
|
||||
d="m 3.0746864,10.024845 h 6.5443115 v 1 H 3.0746864 Z m 0,0"
|
||||
id="path372-5"
|
||||
inkscape:transform-center-x="0.15100098"
|
||||
inkscape:transform-center-y="-2.4645996" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.7 KiB |
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
height="16px"
|
||||
viewBox="0 0 16 16"
|
||||
width="16px"
|
||||
version="1.1"
|
||||
id="svg6"
|
||||
sodipodi:docname="hicolor_apps_scalable_evolution-tasks.svg"
|
||||
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs10" />
|
||||
<sodipodi:namedview
|
||||
id="namedview8"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="33.631766"
|
||||
inkscape:cx="2.6463076"
|
||||
inkscape:cy="11.016371"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1043"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg6" />
|
||||
<path
|
||||
d="M 7,0 C 6.445312,0 6,0.445312 6,1 H 4 C 2.355469,1 1,2.355469 1,4 v 9 c 0,1.644531 1.3554712,2.99733 3,3 l 7.839849,0.01273 c 0.55078,8.94e-4 1,-0.449219 1,-1 0,-0.550781 -0.44922,-0.999106 -1,-1 L 4,14 C 3.4296888,13.999074 3,13.570312 3,13 V 4 C 3,3.429688 3.429688,3 4,3 h 1 v 1 c 0,0.554688 0.445312,1 1,1 h 4 c 0.554688,0 1,-0.445312 1,-1 V 3 h 1 c 0.570312,0 0.998866,0.4296891 1,1 l 0.01889,9.497865 c 0.0011,0.55078 0.449219,1 1,1 0.550781,0 1.001095,-0.44922 1,-1 L 15,4 C 14.996729,2.3554723 13.644531,1 12,1 H 10 C 10,0.445312 9.554688,0 9,0 Z"
|
||||
fill="#2e3436"
|
||||
id="path2"
|
||||
sodipodi:nodetypes="scssssssssssscsssscssssssscss" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
@ -455,7 +455,7 @@ shell_switcher_style_changed (EShellSwitcher *switcher,
|
||||
static GtkIconSize
|
||||
shell_switcher_get_icon_size (GtkToolShell *shell)
|
||||
{
|
||||
return GTK_ICON_SIZE_LARGE_TOOLBAR;
|
||||
return GTK_ICON_SIZE_BUTTON;
|
||||
}
|
||||
|
||||
static GtkOrientation
|
||||
@ -479,7 +479,10 @@ shell_switcher_get_relief_style (GtkToolShell *shell)
|
||||
static gfloat
|
||||
shell_switcher_get_text_alignment (GtkToolShell *shell)
|
||||
{
|
||||
return 0.0;
|
||||
if (shell_switcher_get_style (shell) == GTK_TOOLBAR_ICONS)
|
||||
return 0.5;
|
||||
else
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -92,6 +92,11 @@ toolbar {\
|
||||
border-top: 1px solid @borders;\
|
||||
}\
|
||||
";
|
||||
static const char *css_icons =
|
||||
"* {\
|
||||
-gtk-icon-style:symbolic;\
|
||||
}\
|
||||
";
|
||||
|
||||
static void
|
||||
shell_window_menubar_update_new_menu (EShellWindow *shell_window)
|
||||
@ -1159,6 +1164,10 @@ e_shell_window_init (EShellWindow *shell_window)
|
||||
GTK_STYLE_PROVIDER (css_provider),
|
||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
|
||||
|
||||
/* If running on GNOME, force symbolic icons */
|
||||
if (e_util_is_running_gnome ())
|
||||
gtk_css_provider_load_from_data (css_provider, css_icons, -1, NULL);
|
||||
|
||||
g_signal_connect (shell_window, "delete-event",
|
||||
G_CALLBACK (shell_window_delete_event_cb), NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user