Skip to content
Snippets Groups Projects
Commit 53305be1 authored by Jakub Steiner's avatar Jakub Steiner Committed by Richard Hughes
Browse files

icons: provide generic device fallbacks

- computer-chip to be used instead of audio-card
- usb-hub

Fixes https://gitlab.gnome.org/World/gnome-firmware/-/issues/40
parent 6925bbe6
Branches
Tags
No related merge requests found
......@@ -18,6 +18,87 @@
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2">
<inkscape:path-effect
effect="join_type"
id="path-effect24802"
is_visible="true"
lpeversion="1"
linecap_type="butt"
line_width="2"
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect23851"
is_visible="true"
lpeversion="1"
satellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,2,0,1 @ F,0,1,1,0,2,0,1 @ F,0,0,1,0,0,0,1"
unit="px"
method="auto"
mode="F"
radius="0"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect
effect="join_type"
id="path-effect21420"
is_visible="true"
lpeversion="1"
linecap_type="butt"
line_width="1"
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect21416"
is_visible="true"
lpeversion="1"
satellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,2,0,1 @ F,0,0,1,0,1.5236384,0,1 @ F,0,0,1,0,1.5236384,0,1 @ F,0,0,1,0,0,0,1"
unit="px"
method="auto"
mode="F"
radius="0"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect
effect="join_type"
id="path-effect21412"
is_visible="true"
lpeversion="1"
linecap_type="butt"
line_width="2"
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect21408"
is_visible="true"
lpeversion="1"
satellites_param="F,0,0,1,0,0,0,1 @ F,0,1,1,0,2,0,1 @ F,0,0,1,0,2,0,1 @ F,0,0,1,0,0,0,1"
unit="px"
method="auto"
mode="F"
radius="0"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect
effect="join_type"
id="path-effect29213"
......@@ -513,6 +594,91 @@
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
<inkscape:path-effect
effect="fill_between_many"
method="bsplinespiro"
linkedpaths="#path26542,0,1"
id="path-effect26802"
is_visible="true"
lpeversion="0"
join="true"
close="true"
autoreverse="true"
applied="false" />
<inkscape:path-effect
effect="join_type"
id="path-effect26800"
is_visible="true"
lpeversion="1"
linecap_type="round"
line_width="2"
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect26246"
is_visible="true"
lpeversion="1"
satellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
unit="px"
method="auto"
mode="F"
radius="0"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect
effect="join_type"
id="path-effect26250"
is_visible="true"
lpeversion="1"
linecap_type="round"
line_width="2"
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
<inkscape:path-effect
effect="join_type"
id="path-effect9113"
is_visible="true"
lpeversion="1"
linecap_type="butt"
line_width="2"
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect5105"
is_visible="true"
lpeversion="1"
satellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,3,0,1 @ F,0,0,1,0,3,0,1"
unit="px"
method="auto"
mode="F"
radius="0"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect
effect="join_type"
id="path-effect9111"
is_visible="true"
lpeversion="1"
linecap_type="butt"
line_width="2"
linejoin_type="extrp_arc"
miter_limit="100"
attempt_force_join="true" />
</defs>
<sodipodi:namedview
id="base"
......@@ -541,7 +707,9 @@
inkscape:object-paths="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-midpoints="true"
inkscape:snap-global="false">
inkscape:snap-global="true"
showguides="true"
inkscape:guide-bbox="true">
<inkscape:grid
type="xygrid"
id="grid843" />
......@@ -832,6 +1000,149 @@
inkscape:original-d="m 84.520202,529.51965 v -5.48992 l 11.98623,-0.004 v 2.98991 l -11.980159,0.0164 v 1.4872"
sodipodi:nodetypes="ccccc" />
</g>
<g
id="g26238"
inkscape:label="firmware chip computer component silicon semi-conductor"
transform="translate(62.014221,-85.466129)"
style="fill:#222222">
<title
id="title26228">computer-chip</title>
<rect
y="687.98578"
x="99.985779"
height="16"
width="16"
id="rect26230"
style="fill:none;stroke-width:3" />
<path
inkscape:original-d="M 0,0"
inkscape:path-effect="#path-effect26802"
d="m 111.98578,702.98578 v -3 z"
id="path26804"
style="fill:#2e3436" />
<path
d="m 105.00668,702.98578 v -3 a 1,1 0 1 0 -2,0 v 3 a 1,1 0 1 0 2,0 z m 3.9791,0 v -3 a 1,1 0 1 0 -2,0 v 3 a 1,1 0 1 0 2,0 z m 4,0 v -3 a 1,1 0 1 0 -2,0 v 3 a 1,1 0 1 0 2,0 z"
style="fill:#2e3436;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path26542"
sodipodi:nodetypes="cccccc"
inkscape:path-effect="#path-effect26800"
inkscape:original-d="m 111.98578,702.98578 v -3 m -4,3 v -3 m -3.9791,3 v -3"
inkscape:linked-fill="path26804" />
<path
id="path26236"
style="fill:#2e3436;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:path-effect="#path-effect26246;#path-effect26250"
inkscape:original-d="m 112,692 v -2.01422 M 108,692 v -2.01422 M 104.0209,692 v -2.01422"
d="m 105.0209,692 v -2.01422 a 1,1 0 1 0 -2,0 V 692 a 1,1 0 1 0 2,0 z M 109,692 v -2.01422 a 1,1 0 1 0 -2,0 V 692 a 1,1 0 1 0 2,0 z m 4,0 v -2.01422 a 1,1 0 1 0 -2,0 V 692 a 1,1 0 1 0 2,0 z"
sodipodi:nodetypes="cccccc" />
<path
style="fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000;fill-rule:nonzero"
id="rect26828"
width="12"
height="9"
x="101.98578"
y="691.98578"
rx="2.307373"
ry="2.307373"
sodipodi:type="rect"
inkscape:path-effect="#path-effect24802"
d="m 111.67841,692.98578 c 0.72481,0 1.30737,0.58256 1.30737,1.30737 v 4.38526 c 0,0.72481 -0.58256,1.30737 -1.30737,1.30737 h -7.38526 c -0.72481,0 -1.30737,-0.58256 -1.30737,-1.30737 v -4.38526 c 0,-0.72481 0.58256,-1.30737 1.30737,-1.30737 z m -10.69263,1.30737 v 4.38526 c 0,1.83176 1.47561,3.30737 3.30737,3.30737 h 7.38526 c 1.83176,0 3.30737,-1.47561 3.30737,-3.30737 v -4.38526 c 0,-1.83176 -1.47561,-3.30737 -3.30737,-3.30737 h -7.38526 c -1.83176,0 -3.30737,1.47561 -3.30737,3.30737 z" />
<path
style="fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 102.98578,697.98578 c 0,0.54582 0.46823,1 1.0209,1 h 7.9791 c 0.59367,0 1,-0.51379 1,-1 h 1 v 0.93481 l -2,2.04508 -8,0.0201 -2,-2.30498 v -0.69501 z"
id="path30642"
sodipodi:nodetypes="ccccccccccc" />
</g>
<g
id="g4138"
inkscape:label="settings usb connector usb-a"
transform="translate(-418.00604,-121.48035)"
style="fill:#222222">
<title
id="title4131">usb-connector</title>
<rect
style="fill:none"
id="rect4133"
width="16"
height="16"
x="600.00604"
y="724" />
<path
style="fill:#2e3436;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
id="rect4242"
width="10"
height="7"
x="603.00604"
y="725"
inkscape:path-effect="#path-effect9113"
sodipodi:type="rect"
d="m 613.00604,726 -1,-1 v 7 l 1,-1 h -10 l 1,1 v -7 l -1,1 z m -11,7 h 12 v -9 h -12 z" />
<path
style="fill:#2e3436;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
id="rect5103"
width="14"
height="7"
x="601.00604"
y="732"
inkscape:path-effect="#path-effect5105;#path-effect9111"
sodipodi:type="rect"
d="m 615.00604,733 -1,-1 v 4 c 0,1.09953 -0.90047,2 -2,2 h -8 c -1.09952,0 -2,-0.90047 -2,-2 v -4 l -1,1 z m -15,3 c 0,2.21418 1.78582,4 4,4 h 8 c 2.21419,0 4,-1.78582 4,-4 v -5 h -16 z" />
<rect
style="fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
id="rect5148"
width="2"
height="2"
x="605.00604"
y="727" />
<rect
style="fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;stop-color:#000000"
id="rect5274"
width="2"
height="2"
x="609.00604"
y="727" />
</g>
<g
id="g21404"
inkscape:label="hardware device usb hub powered unpowered"
transform="rotate(180,150,570.51965)">
<title
id="title21392">usb-hub</title>
<rect
y="522.51965"
x="82"
height="16"
width="16"
id="rect21394"
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal" />
<path
style="fill:#2e3436;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 84,529.51965 v 1.5 c 0,1.38323 1.116766,2.5 2.5,2.5 h 7.976362 c 0.562817,0 1.023638,0.46082 1.0237,1.01576 -0.0087,0.5498 -0.466025,0.99297 -1.0237,0.98424 H 88 v 1 l 6.468483,-6e-5 c 1.107057,0.0174 2.014009,-0.86137 2.031517,-1.9763 0,-1.12015 -0.903492,-2.02364 -2.023638,-2.02364 H 86.5 c -0.825905,0 -1.5,-0.67409 -1.5,-1.5 v -1.5 z"
id="path21400"
inkscape:path-effect="#path-effect21416;#path-effect21420"
inkscape:original-d="m 84.5,529.51965 v 3.5 H 96 v 3 h -8"
sodipodi:nodetypes="ccccc" />
<path
id="rect21524"
style="fill:#2e3436;fill-opacity:1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="m 205,280 c -1.108,0 -2,0.892 -2,2 v 5 c 0,1.108 0.892,2 2,2 h 10 c 1.108,0 2,-0.892 2,-2 v -5 c 0,-1.108 -0.892,-2 -2,-2 z m 0,2 h 4 v 2 h -4 z m 6,0 h 4 v 2 h -4 z m -6,3 h 4 v 2 h -4 z m 6,0 h 4 v 2 h -4 z"
transform="translate(-120,242.51965)"
sodipodi:nodetypes="ssssssssscccccccccccccccccccc" />
<path
id="rect21402"
style="fill:#2e3436;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="m 87,534.51965 h 2 a 2,2 45 0 1 2,2 2,2 135 0 1 -2,2 h -2 z"
sodipodi:nodetypes="ccccc"
inkscape:path-effect="#path-effect23851"
inkscape:original-d="m 87,534.51965 h 4 v 4 h -4 z" />
<rect
style="fill:#2e3436;fill-opacity:1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
id="rect22208"
width="2"
height="2"
x="85"
y="535.51965" />
</g>
</g>
<g
inkscape:groupmode="layer"
......
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" version="1.1">
<g id="surface2247">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 5.019531 15 L 5.019531 12 C 5.019531 11.449219 4.574219 11 4.019531 11 C 3.46875 11 3.019531 11.449219 3.019531 12 L 3.019531 15 C 3.019531 15.550781 3.46875 16 4.019531 16 C 4.574219 16 5.019531 15.550781 5.019531 15 Z M 9 15 L 9 12 C 9 11.449219 8.550781 11 8 11 C 7.449219 11 7 11.449219 7 12 L 7 15 C 7 15.550781 7.449219 16 8 16 C 8.550781 16 9 15.550781 9 15 Z M 13 15 L 13 12 C 13 11.449219 12.550781 11 12 11 C 11.449219 11 11 11.449219 11 12 L 11 15 C 11 15.550781 11.449219 16 12 16 C 12.550781 16 13 15.550781 13 15 Z M 13 15 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 5.035156 4.015625 L 5.035156 2 C 5.035156 1.449219 4.585938 1 4.035156 1 C 3.484375 1 3.035156 1.449219 3.035156 2 L 3.035156 4.015625 C 3.035156 4.566406 3.484375 5.015625 4.035156 5.015625 C 4.585938 5.015625 5.035156 4.566406 5.035156 4.015625 Z M 9.015625 4.015625 L 9.015625 2 C 9.015625 1.449219 8.566406 1 8.015625 1 C 7.460938 1 7.015625 1.449219 7.015625 2 L 7.015625 4.015625 C 7.015625 4.566406 7.460938 5.015625 8.015625 5.015625 C 8.566406 5.015625 9.015625 4.566406 9.015625 4.015625 Z M 13.015625 4.015625 L 13.015625 2 C 13.015625 1.449219 12.566406 1 12.015625 1 C 11.460938 1 11.015625 1.449219 11.015625 2 L 11.015625 4.015625 C 11.015625 4.566406 11.460938 5.015625 12.015625 5.015625 C 12.566406 5.015625 13.015625 4.566406 13.015625 4.015625 Z M 13.015625 4.015625 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 11.691406 5 C 12.417969 5 13 5.582031 13 6.308594 L 13 10.691406 C 13 11.417969 12.417969 12 11.691406 12 L 4.308594 12 C 3.582031 12 3 11.417969 3 10.691406 L 3 6.308594 C 3 5.582031 3.582031 5 4.308594 5 Z M 1 6.308594 L 1 10.691406 C 1 12.523438 2.476562 14 4.308594 14 L 11.691406 14 C 13.523438 14 15 12.523438 15 10.691406 L 15 6.308594 C 15 4.476562 13.523438 3 11.691406 3 L 4.308594 3 C 2.476562 3 1 4.476562 1 6.308594 Z M 1 6.308594 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 3 10 C 3 10.546875 3.46875 11 4.019531 11 L 12 11 C 12.59375 11 13 10.484375 13 10 L 14 10 L 14 10.933594 L 12 12.980469 L 4 13 L 2 10.695312 L 2 10 Z M 3 10 "/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 16 16" version="1.1">
<g id="surface3010">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 14 9 L 14 7.5 C 14 6.117188 12.882812 5 11.5 5 L 3.523438 5 C 2.960938 5 2.5 4.539062 2.5 3.984375 C 2.507812 3.433594 2.964844 2.992188 3.523438 3 L 10 3 L 10 2 L 3.53125 2 C 2.425781 1.984375 1.515625 2.863281 1.5 3.976562 C 1.5 5.097656 2.402344 6 3.523438 6 L 11.5 6 C 12.324219 6 13 6.675781 13 7.5 L 13 9 Z M 14 9 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 13 16 C 14.109375 16 15 15.109375 15 14 L 15 9 C 15 7.890625 14.109375 7 13 7 L 3 7 C 1.890625 7 1 7.890625 1 9 L 1 14 C 1 15.109375 1.890625 16 3 16 Z M 13 14 L 9 14 L 9 12 L 13 12 Z M 7 14 L 3 14 L 3 12 L 7 12 Z M 13 11 L 9 11 L 9 9 L 13 9 Z M 7 11 L 3 11 L 3 9 L 7 9 Z M 7 11 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 11 4 L 9 4 C 7.894531 4 7 3.105469 7 2 C 7 0.894531 7.894531 0 9 0 L 11 0 Z M 11 4 "/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M 13 3 L 11 3 L 11 1 L 13 1 Z M 13 3 "/>
</g>
</svg>
......@@ -62,7 +62,8 @@ gfu_device_row_refresh(GfuDeviceRow *self)
/* ultimate fallback */
if (icon_name == NULL)
icon_name = g_strdup("computer-symbolic");
icon_name = g_strdup("computer-chip-symbolic");
gtk_image_set_from_icon_name(GTK_IMAGE(priv->image), icon_name);
}
......
......@@ -14,7 +14,6 @@
<property name="halign">center</property>
<property name="valign">center</property>
<property name="pixel_size">16</property>
<property name="use_fallback">1</property>
</object>
</child>
<child>
......
......@@ -7,7 +7,9 @@
<!-- private icons-->
<file preprocess="xml-stripblanks" alias="icons/scalable/devices/auth-otp-symbolic.svg">../data/resources/icons/devices/auth-otp-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="icons/scalable/devices/colorimeter-colorhug-symbolic.svg">../data/resources/icons/devices/colorimeter-colorhug-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="icons/scalable/devices/computer-chip-symbolic.svg">../data/resources/icons/devices/computer-chip-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="icons/scalable/devices/dock-symbolic.svg">../data/resources/icons/devices/dock-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="icons/scalable/devices/dock-usb-symbolic.svg">../data/resources/icons/devices/dock-usb-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="icons/scalable/devices/usb-hub-symbolic.svg">../data/resources/icons/devices/usb-hub-symbolic.svg</file>
</gresource>
</gresources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment