[gnome-control-center/wip/jimmac/panel-icons: 12/35] diagnostics: add app icon




commit 055971b5f84655ccd4a2274b04aa63c88449d624
Author: Jakub Steiner <jimmac gmail com>
Date:   Fri Jan 28 13:37:43 2022 +0100

    diagnostics: add app icon
    
    See https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/163

 panels/diagnostics/gnome-diagnostics-panel.desktop.in.in          | 2 +-
 panels/diagnostics/icons/meson.build                              | 4 ++++
 .../icons/scalable/org.gnome.Settings-diagnostics-symbolic.svg    | 8 ++++++++
 panels/diagnostics/meson.build                                    | 2 ++
 4 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/panels/diagnostics/gnome-diagnostics-panel.desktop.in.in 
b/panels/diagnostics/gnome-diagnostics-panel.desktop.in.in
index 33d2a9d3b..7a1362b88 100644
--- a/panels/diagnostics/gnome-diagnostics-panel.desktop.in.in
+++ b/panels/diagnostics/gnome-diagnostics-panel.desktop.in.in
@@ -4,7 +4,7 @@ Comment=Report your problems
 Exec=gnome-control-center diagnostics
 # FIXME
 # Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=system-help
+Icon=org.gnome.Settings-diagnostics-symbolic
 Terminal=false
 Type=Application
 NoDisplay=true
diff --git a/panels/diagnostics/icons/meson.build b/panels/diagnostics/icons/meson.build
new file mode 100644
index 000000000..c1b200dd1
--- /dev/null
+++ b/panels/diagnostics/icons/meson.build
@@ -0,0 +1,4 @@
+install_data(
+  'scalable/org.gnome.Settings-diagnostics-symbolic.svg',
+  install_dir: join_paths(control_center_icondir, 'hicolor', 'scalable', 'apps')
+)
diff --git a/panels/diagnostics/icons/scalable/org.gnome.Settings-diagnostics-symbolic.svg 
b/panels/diagnostics/icons/scalable/org.gnome.Settings-diagnostics-symbolic.svg
new file mode 100644
index 000000000..34e4afc59
--- /dev/null
+++ b/panels/diagnostics/icons/scalable/org.gnome.Settings-diagnostics-symbolic.svg
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg";>
+    <g fill="#2e3436">
+        <path d="m 3.011719 1 c -1.644531 0 -3.0000002 1.355469 -3.0000002 3 v 6 c 0 1.644531 1.3554692 3 
3.0000002 3 h 1.988281 v -2 h -1.988281 c -0.570313 0 -1 -0.429688 -1 -1 v -6 c 0 -0.570312 0.429687 -1 1 -1 
h 8.976562 c 0.570313 0 1 0.429688 1 1 v 1 h 2 v -1 c 0 -1.644531 -1.355469 -3 -3 -3 z m 0 0"/>
+        <path d="m 5.011719 14 c -1.105469 0 -2 0.894531 -2 2 h 10 c 0 -1.105469 -0.894531 -2 -2 -2 z m 0 
0"/>
+        <path d="m 9.5 4 c -2.484375 0 -4.5 2.015625 -4.5 4.5 s 2.015625 4.5 4.5 4.5 c 0.847656 0 1.675781 
-0.242188 2.390625 -0.695312 l 2.402344 2.402343 c 0.390625 0.390625 1.023437 0.390625 1.414062 0 s 0.390625 
-1.023437 0 -1.414062 l -2.398437 -2.398438 c 0.449218 -0.71875 0.691406 -1.546875 0.691406 -2.394531 c 0 
-2.484375 -2.015625 -4.5 -4.5 -4.5 z m 0 2 c 1.378906 0 2.5 1.121094 2.5 2.5 s -1.121094 2.5 -2.5 2.5 s -2.5 
-1.121094 -2.5 -2.5 s 1.121094 -2.5 2.5 -2.5 z m 0 0"/>
+    </g>
+</svg>
diff --git a/panels/diagnostics/meson.build b/panels/diagnostics/meson.build
index 2f25c2194..0061d3850 100644
--- a/panels/diagnostics/meson.build
+++ b/panels/diagnostics/meson.build
@@ -37,3 +37,5 @@ panels_libs += static_library(
   dependencies: common_deps,
   c_args: cflags
 )
+
+subdir('icons')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]