[gnome-control-center/wip/jimmac/panel-icons: 31/41] printers: add app icon




commit ba8da97abf4b82c4a478841826eb053f41579cbb
Author: Jakub Steiner <jimmac gmail com>
Date:   Fri Jan 28 14:28:26 2022 +0100

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

 panels/printers/gnome-printers-panel.desktop.in.in                | 4 ++--
 panels/printers/icons/meson.build                                 | 4 ++++
 .../icons/scalable/org.gnome.Settings-printers-symbolic.svg       | 8 ++++++++
 panels/printers/meson.build                                       | 1 +
 4 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/panels/printers/gnome-printers-panel.desktop.in.in 
b/panels/printers/gnome-printers-panel.desktop.in.in
index 96ed1d288..6ad952de0 100644
--- a/panels/printers/gnome-printers-panel.desktop.in.in
+++ b/panels/printers/gnome-printers-panel.desktop.in.in
@@ -3,7 +3,7 @@ Name=Printers
 Comment=Add printers, view printer jobs and decide how you want to print
 Exec=gnome-control-center printers
 # Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=printer
+Icon=org.gnome.Settings-printers-symbolic
 Terminal=false
 Type=Application
 NoDisplay=true
@@ -14,4 +14,4 @@ OnlyShowIn=GNOME;Unity;
 # Translators: Search terms to find the Printers panel. Do NOT translate or localize the semicolons! The 
list MUST also end with a semicolon!
 Keywords=Printer;Queue;Print;Paper;Ink;Toner;
 # Notifications are emitted by gnome-settings-daemon
-X-GNOME-UsesNotifications=true
\ No newline at end of file
+X-GNOME-UsesNotifications=true
diff --git a/panels/printers/icons/meson.build b/panels/printers/icons/meson.build
new file mode 100644
index 000000000..d44c8f5ec
--- /dev/null
+++ b/panels/printers/icons/meson.build
@@ -0,0 +1,4 @@
+install_data(
+  'scalable/org.gnome.Settings-printers-symbolic.svg',
+  install_dir: join_paths(control_center_icondir, 'hicolor', 'scalable', 'apps')
+)
diff --git a/panels/printers/icons/scalable/org.gnome.Settings-printers-symbolic.svg 
b/panels/printers/icons/scalable/org.gnome.Settings-printers-symbolic.svg
new file mode 100644
index 000000000..bd21973dd
--- /dev/null
+++ b/panels/printers/icons/scalable/org.gnome.Settings-printers-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 4 2 v 1 h 8 v -1 c 0 -0.550781 -0.449219 -1 -1 -1 h -6 c -0.550781 0 -1 0.449219 -1 1 z m 
0 0"/>
+        <path d="m 4 8 c -1.089844 0 -2 0.910156 -2 2 v 3 c 0 1.089844 0.910156 2 2 2 h 8 c 1.089844 0 2 
-0.910156 2 -2 v -3 c 0 -1.089844 -0.910156 -2 -2 -2 z m 0 2 h 8 v 3 h -8 z m 0 0"/>
+        <path d="m 2 4 c -1.109375 0 -2 0.890625 -2 2 v 4 c 0 1.109375 0.890625 2 2 2 h 1 v -2 c 0 -0.554688 
0.445312 -1 1 -1 h 8 c 0.554688 0 1 0.445312 1 1 v 2 h 1 c 1.109375 0 2 -0.890625 2 -2 v -4 c 0 -1.109375 
-0.890625 -2 -2 -2 z m 0 0"/>
+    </g>
+</svg>
diff --git a/panels/printers/meson.build b/panels/printers/meson.build
index 042c67acc..7d1ed9d47 100644
--- a/panels/printers/meson.build
+++ b/panels/printers/meson.build
@@ -74,3 +74,4 @@ printers_panel_lib = static_library(
 )
 panels_libs += [ printers_panel_lib ]
 
+subdir('icons')


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