[gnome-software: 3/6] Replace application-x-addon by a new icon




commit 70e41a7826148711d2b1f671d32a59a8f2a76430
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Jul 28 08:14:34 2021 +0200

    Replace application-x-addon by a new icon
    
    This is more in line with the new component icons.

 data/icons/system-component-addon.svg       | 35 +++++++++++++++++++++++++++++
 plugins/dummy/gs-plugin-dummy.c             |  2 +-
 plugins/eos-updater/gs-plugin-eos-updater.c |  2 +-
 src/gnome-software.gresource.xml            |  1 +
 4 files changed, 38 insertions(+), 2 deletions(-)
---
diff --git a/data/icons/system-component-addon.svg b/data/icons/system-component-addon.svg
new file mode 100644
index 000000000..83c1b34f5
--- /dev/null
+++ b/data/icons/system-component-addon.svg
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="128px" viewBox="0 0 128 128" width="128px" xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink";>
+    <linearGradient id="a" gradientUnits="userSpaceOnUse" x1="8.157114" x2="122.745697" y1="77.241079" 
y2="77.241079">
+        <stop offset="0" stop-color="#99c1f1"/>
+        <stop offset="0.0575141" stop-color="#1a5fb4"/>
+        <stop offset="0.388232" stop-color="#1a5fb4"/>
+        <stop offset="0.473021" stop-color="#2b7be0"/>
+        <stop offset="0.618795" stop-color="#154d91"/>
+        <stop offset="0.953538" stop-color="#1a5fb4"/>
+        <stop offset="1" stop-color="#2f7fe1"/>
+    </linearGradient>
+    <clipPath id="b">
+        <path d="m 6 1 h 117 v 118 h -117 z m 0 0"/>
+    </clipPath>
+    <clipPath id="c">
+        <path d="m 70.335938 115.847656 l 50.097656 -50.097656 c 3.253906 -3.253906 3.253906 -8.53125 0 
-11.785156 l -50.097656 -50.101563 c -3.253907 -3.253906 -8.535157 -3.253906 -11.789063 0 l -50.097656 
50.101563 c -3.253907 3.253906 -3.253907 8.53125 0 11.785156 l 50.097656 50.097656 c 3.253906 3.257813 
8.535156 3.257813 11.789063 0 z m 0 0"/>
+    </clipPath>
+    <clipPath id="d">
+        <path d="m 40 30 h 56 v 56 h -56 z m 0 0"/>
+    </clipPath>
+    <clipPath id="e">
+        <path d="m 70.335938 115.847656 l 50.097656 -50.097656 c 3.253906 -3.253906 3.253906 -8.53125 0 
-11.785156 l -50.097656 -50.101563 c -3.253907 -3.253906 -8.535157 -3.253906 -11.789063 0 l -50.097656 
50.101563 c -3.253907 3.253906 -3.253907 8.53125 0 11.785156 l 50.097656 50.097656 c 3.253906 3.257813 
8.535156 3.257813 11.789063 0 z m 0 0"/>
+    </clipPath>
+    <path d="m 70.40625 119.546875 l 50.207031 -50.207031 c 1.660157 -1.660156 2.574219 -3.839844 2.453125 
-6.003906 l -0.140625 -3.058594 l -52.519531 -52.953125 c -3.257812 -3.289063 -8.394531 -3.121094 -11.8125 0 
l -52.550781 52.996093 l -0.042969 3.144532 c -0.027344 2.125 0.761719 4.246094 2.390625 5.875 l 50.203125 
50.207031 c 3.273438 3.269531 8.542969 3.269531 11.8125 0 z m 0 0" fill="url(#a)"/>
+    <g clip-path="url(#b)">
+        <g clip-path="url(#c)">
+            <path d="m 70.335938 115.847656 l 50.097656 -50.097656 c 3.253906 -3.253906 3.253906 -8.53125 0 
-11.785156 l -50.097656 -50.101563 c -3.253907 -3.253906 -8.535157 -3.253906 -11.789063 0 l -50.097656 
50.101563 c -3.253907 3.253906 -3.253907 8.53125 0 11.785156 l 50.097656 50.097656 c 3.253906 3.257813 
8.535156 3.257813 11.789063 0 z m 0 0" fill="#62a0ea"/>
+        </g>
+    </g>
+    <g clip-path="url(#d)">
+        <g clip-path="url(#e)">
+            <path d="m 62 30 c -3.324219 0 -6 2.675781 -6 6 v 6 h -12 c -2.214844 0 -4 1.785156 -4 4 v 12 h 
6 c 3.324219 0 6 2.675781 6 6 s -2.675781 6 -6 6 h -6 v 12 c 0 2.214844 1.785156 4 4 4 h 12 v -6 c 0 
-3.324219 2.675781 -6 6 -6 s 6 2.675781 6 6 v 6 h 12 c 2.214844 0 4 -1.785156 4 -4 v -12 h 6 c 3.324219 0 6 
-2.675781 6 -6 s -2.675781 -6 -6 -6 h -6 v -12 c 0 -2.214844 -1.785156 -4 -4 -4 h -12 v -6 c 0 -3.324219 
-2.675781 -6 -6 -6 z m 0 0" fill="#99c1f1"/>
+        </g>
+    </g>
+</svg>
diff --git a/plugins/dummy/gs-plugin-dummy.c b/plugins/dummy/gs-plugin-dummy.c
index 3813c4b8f..4c49f446c 100644
--- a/plugins/dummy/gs-plugin-dummy.c
+++ b/plugins/dummy/gs-plugin-dummy.c
@@ -774,7 +774,7 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
        g_autoptr(GIcon) ic = NULL;
 
        /* use stock icon */
-       ic = g_themed_icon_new ("application-x-addon");
+       ic = g_themed_icon_new ("system-component-addon");
 
        /* get existing item from the cache */
        app = gs_plugin_cache_lookup (plugin, 
"user/*/os-upgrade/org.fedoraproject.release-rawhide.upgrade/*");
diff --git a/plugins/eos-updater/gs-plugin-eos-updater.c b/plugins/eos-updater/gs-plugin-eos-updater.c
index fec3a027b..17d91a373 100644
--- a/plugins/eos-updater/gs-plugin-eos-updater.c
+++ b/plugins/eos-updater/gs-plugin-eos-updater.c
@@ -549,7 +549,7 @@ gs_plugin_setup (GsPlugin *plugin,
        /* prepare EOS upgrade app + sync initial state */
 
        /* use stock icon */
-       ic = g_themed_icon_new ("application-x-addon");
+       ic = g_themed_icon_new ("system-component-addon");
 
        /* create the OS upgrade */
        app = gs_app_new ("com.endlessm.EOS.upgrade");
diff --git a/src/gnome-software.gresource.xml b/src/gnome-software.gresource.xml
index 6d6bf1eb0..efcfc1558 100644
--- a/src/gnome-software.gresource.xml
+++ b/src/gnome-software.gresource.xml
@@ -44,6 +44,7 @@
   <file preprocess="xml-stripblanks">org.freedesktop.PackageKit.xml</file>
   <file>gtk-style.css</file>
   <file>gtk-style-hc.css</file>
+  <file preprocess="xml-stripblanks" 
alias="icons/scalable/apps/system-component-addon.svg">../data/icons/system-component-addon.svg</file>
   <file preprocess="xml-stripblanks" 
alias="icons/scalable/apps/system-component-application.svg">../data/icons/system-component-application.svg</file>
   <file preprocess="xml-stripblanks" 
alias="icons/scalable/apps/system-component-codecs.svg">../data/icons/system-component-codecs.svg</file>
   <file preprocess="xml-stripblanks" 
alias="icons/scalable/apps/system-component-driver.svg">../data/icons/system-component-driver.svg</file>


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