[sysprof/wip/jimmac/app-icon-redesign] icon: update app icon



commit 573c6ec82d6a3936ca246e4b7216193bd3e40f8d
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue Jan 29 13:28:51 2019 +0100

    icon: update app icon
    
    - GNOME 3.32 redesign of app icons.
      See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
      for more info.
    
    /label ~"9. Initiative: AppIconRedesign"

 data/icons/16x16/apps/sysprof.png                  |  Bin 938 -> 0 bytes
 data/icons/24x24/apps/sysprof.png                  |  Bin 1356 -> 0 bytes
 data/icons/256x256/apps/sysprof.png                |  Bin 55241 -> 0 bytes
 data/icons/32x32/apps/sysprof.png                  |  Bin 2303 -> 0 bytes
 data/icons/48x48/apps/sysprof.png                  |  Bin 4101 -> 0 bytes
 data/icons/scalable/apps/org.gnome.Sysprof.svg     |    1 +
 .../apps/org.gnome.Sysprof-symbolic.svg}           |    0
 data/icons/sysprof-source.svg                      | 6573 --------------------
 data/meson.build                                   |    2 +-
 data/org.gnome.Sysprof2.desktop.in                 |    2 +-
 lib/resources/libsysprof.gresource.xml             |    8 +-
 lib/resources/ui/sp-empty-state-view.ui            |    2 +-
 lib/resources/ui/sp-recording-state-view.ui        |    2 +-
 src/sp-application.c                               |    2 +-
 14 files changed, 8 insertions(+), 6584 deletions(-)
---
diff --git a/data/icons/scalable/apps/org.gnome.Sysprof.svg b/data/icons/scalable/apps/org.gnome.Sysprof.svg
new file mode 100644
index 0000000..98b193c
--- /dev/null
+++ b/data/icons/scalable/apps/org.gnome.Sysprof.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; width="128" height="128" 
version="1.0"><defs><linearGradient id="g"><stop offset="0" stop-color="#77767b"/><stop offset=".089" 
stop-color="#9a9996"/><stop offset=".4" stop-color="#deddda"/><stop offset=".8" stop-color="#a9a8a9"/><stop 
offset="1" stop-color="#77767b"/></linearGradient><linearGradient id="h"><stop offset="0" 
stop-color="#fff"/><stop offset="1" stop-color="#f6f5f4"/></linearGradient><linearGradient id="a"><stop 
offset="0" stop-color="#f6f5f4" stop-opacity=".437"/><stop offset="1" stop-color="#deddda" 
stop-opacity="0"/></linearGradient><linearGradient id="b"><stop offset="0" stop-color="#7a8599"/><stop 
offset="1" stop-color="#a4acb7"/></linearGradient><linearGradient xlink:href="#b" id="n" x1="30" y1="250" 
x2="98" y2="250" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.11765 0 0 1.11765 178.47 
-343.412)"/><radialGradient xlink:href="#c" id="m" cx="64" cy="247.702" fx="
 64" fy="
 247.702" r="46" gradientUnits="userSpaceOnUse"/><linearGradient id="c"><stop offset="0" 
stop-color="#5e5c64"/><stop offset=".739" stop-color="#c0bfbc"/><stop offset=".896" 
stop-color="#deddda"/><stop offset="1" stop-color="#77767b"/></linearGradient><linearGradient xlink:href="#d" 
id="l" x1="58" y1="189" x2="70" y2="189" gradientUnits="userSpaceOnUse"/><linearGradient id="d"><stop 
offset="0" stop-color="#77767b"/><stop offset=".075" stop-color="#9a9996"/><stop offset=".445" 
stop-color="#deddda"/><stop offset=".834" stop-color="#b9b8b8"/><stop offset="1" 
stop-color="#77767b"/></linearGradient><linearGradient xlink:href="#e" id="k" x1="60" y1="199.856" x2="68" 
y2="199.856" gradientUnits="userSpaceOnUse"/><linearGradient id="e"><stop offset="0" 
stop-color="#9a9996"/><stop offset=".119" stop-color="#c0bfbc"/><stop offset=".351" 
stop-color="#deddda"/><stop offset=".602" stop-color="#d2d1ce"/><stop offset=".853" 
stop-color="#bbbab7"/><stop offset="1" stop-color="#9a9996"/></linear
 Gradient
<radialGradient xlink:href="#f" id="j" cx="63.679" cy="186.801" fx="63.679" fy="186.801" r="16" 
gradientUnits="userSpaceOnUse"/><linearGradient id="f"><stop offset="0" stop-color="#77767b"/><stop 
offset=".729" stop-color="#77767b"/><stop offset=".81" stop-color="#abaaa9"/><stop offset=".9" 
stop-color="#c0bfbc"/><stop offset="1" stop-color="#77767b"/></linearGradient><linearGradient 
xlink:href="#g" id="i" gradientUnits="userSpaceOnUse" x1="58" y1="189" x2="70" y2="189" 
gradientTransform="matrix(.83333 0 0 1.5 41.667 -92)"/><linearGradient xlink:href="#h" id="o" x1="4.879" 
y1="229.068" x2="-11.685" y2="290.887" gradientUnits="userSpaceOnUse"/></defs><g transform="translate(0 
-172)"><path fill="url(#i)" d="M90 184h10v15H90z" transform="rotate(25 63.713 176.584)"/><path opacity=".2" 
d="M86.216 195.26l-3.381 7.25-1.813-.845 3.381-7.25zM89.84 196.95l-3.38 7.25-1.813-.844 3.381-7.25zM93.466 
198.64l-3.38 7.251-1.814-.845 3.381-7.25z"/><circle r="14" cy="188" cx="64" fill="none" str
 oke="url
 (#j)" stroke-width="4" stroke-linejoin="round"/><path fill="url(#k)" d="M60 190h8v20h-8z"/><path 
fill="url(#l)" d="M58 184h12v10H58z"/><circle cx="64" cy="250" r="46" fill="url(#m)"/><circle r="38" cy="-64" 
cx="250" transform="rotate(90)" fill="url(#n)"/><circle transform="rotate(-15)" r="36" cy="258.046" 
cx="-2.886" fill="url(#o)"/><path d="M63 217l-.744 27.201c-2.636.692-4.254 3.074-4.256 5.799a6 6 0 0 0 3.844 
5.592l-.217 3.902a2.374 2.374 0 1 0 4.746 0l-.217-3.896A6 6 0 0 0 70 
250c-.003-2.725-1.709-5.105-4.344-5.797L65 217zm1 29a4 4 0 1 1 0 8 4 4 0 0 1 0-8z" fill="#414045"/><path 
opacity=".2" d="M60 194h8v2h-8zM62 184v8h-2v-8zM66 184v8h-2v-8zM70 184v8h-2v-8z"/><path d="M65.375 214.025a36 
36 0 0 0-10.693 1.202 36 36 0 0 0-26.635 35.162 36 36 0 0 1 26.635-33.162 36 36 0 0 1 44.091 25.455 36 36 0 0 
1 1.18 8.93 36 36 0 0 0-1.18-10.93 36 36 0 0 0-33.398-26.657z" opacity=".05"/></g></svg>
\ No newline at end of file
diff --git a/data/icons/scalable/apps/sysprof-symbolic.svg 
b/data/icons/symbolic/apps/org.gnome.Sysprof-symbolic.svg
similarity index 100%
rename from data/icons/scalable/apps/sysprof-symbolic.svg
rename to data/icons/symbolic/apps/org.gnome.Sysprof-symbolic.svg
diff --git a/data/meson.build b/data/meson.build
index 563dc20..cc924ae 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -57,7 +57,7 @@ if get_option('enable_gtk')
     install_dir: pkgconfigdir,
   )
 
-  icon_sizes = ['16x16', '24x24', '32x32', '48x48', '256x256', 'scalable']
+  icon_sizes = ['scalable', 'symbolic']
   foreach size: icon_sizes
     install_subdir('icons/' + size,
       install_dir: join_paths(datadir, 'icons/hicolor')
diff --git a/data/org.gnome.Sysprof2.desktop.in b/data/org.gnome.Sysprof2.desktop.in
index 2f8aa29..24e36a9 100644
--- a/data/org.gnome.Sysprof2.desktop.in
+++ b/data/org.gnome.Sysprof2.desktop.in
@@ -6,7 +6,7 @@ Comment=Profile an application or entire system.
 Exec=sysprof %u
 TryExec=sysprof
 # Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=sysprof
+Icon=org.gnome.Sysprof
 StartupNotify=true
 Terminal=false
 Type=Application
diff --git a/lib/resources/libsysprof.gresource.xml b/lib/resources/libsysprof.gresource.xml
index 00743b6..b0ce524 100644
--- a/lib/resources/libsysprof.gresource.xml
+++ b/lib/resources/libsysprof.gresource.xml
@@ -6,12 +6,8 @@
     <file compressed="true">css/SpVisualizerView-Adwaita-dark.css</file>
 
     <!-- Application icons -->
-    <file alias="icons/16x16/apps/sysprof.png">../../data/icons/16x16/apps/sysprof.png</file>
-    <file alias="icons/24x24/apps/sysprof.png">../../data/icons/24x24/apps/sysprof.png</file>
-    <file alias="icons/32x32/apps/sysprof.png">../../data/icons/32x32/apps/sysprof.png</file>
-    <file alias="icons/48x48/apps/sysprof.png">../../data/icons/48x48/apps/sysprof.png</file>
-    <file alias="icons/256x256/apps/sysprof.png">../../data/icons/256x256/apps/sysprof.png</file>
-    <file 
alias="icons/scalable/apps/sysprof-symbolic.svg">../../data/icons/scalable/apps/sysprof-symbolic.svg</file>
+    <file 
alias="icons/scalable/apps/org.gnome.Sysprof.svg">../../data/icons/scalable/apps/org.gnome.Sysprof.svg</file>
+    <file 
alias="icons/symbolic/apps/org.gnome.Sysprof-symbolic.svg">../../data/icons/symbolic/apps/org.gnome.Sysprof-symbolic.svg</file>
 
     <file compressed="true">ui/sp-callgraph-view.ui</file>
     <file compressed="true">ui/sp-empty-state-view.ui</file>
diff --git a/lib/resources/ui/sp-empty-state-view.ui b/lib/resources/ui/sp-empty-state-view.ui
index 61c02e7..d6cad47 100644
--- a/lib/resources/ui/sp-empty-state-view.ui
+++ b/lib/resources/ui/sp-empty-state-view.ui
@@ -9,7 +9,7 @@
         <property name="visible">true</property>
         <child type="center">
           <object class="GtkImage">
-            <property name="icon-name">sysprof-symbolic</property>
+            <property name="icon-name">org.gnome.Sysprof-symbolic</property>
             <property name="pixel-size">256</property>
             <property name="visible">true</property>
             <style>
diff --git a/lib/resources/ui/sp-recording-state-view.ui b/lib/resources/ui/sp-recording-state-view.ui
index 0e15477..18d720f 100644
--- a/lib/resources/ui/sp-recording-state-view.ui
+++ b/lib/resources/ui/sp-recording-state-view.ui
@@ -9,7 +9,7 @@
         <property name="visible">true</property>
         <child type="center">
           <object class="GtkImage">
-            <property name="icon-name">sysprof-symbolic</property>
+            <property name="icon-name">org.gnome.Sysprof-symbolic</property>
             <property name="pixel-size">256</property>
             <property name="visible">true</property>
             <style>
diff --git a/src/sp-application.c b/src/sp-application.c
index 21bee63..679a301 100644
--- a/src/sp-application.c
+++ b/src/sp-application.c
@@ -188,7 +188,7 @@ sysprof_about (GSimpleAction *action,
                          "modal", TRUE,
                          "translator-credits", _("translator-credits"),
                          "license-type", GTK_LICENSE_GPL_3_0,
-                         "logo-icon-name", "sysprof",
+                         "logo-icon-name", "org.gnome.Sysprof",
                          "program-name", _("Sysprof"),
                          "version", PACKAGE_VERSION,
                          "website", "https://wiki.gnome.org/Apps/Sysprof";,


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