[gnome-weather/wip/jimmac/nightly-app-icon: 2/2] icon: create a nightly app icon



commit 7220ac9bea31a96f3963482e13cdb6b42d928768
Author: Jakub Steiner <jimmac gmail com>
Date:   Mon Oct 7 15:39:56 2019 +0200

    icon: create a nightly app icon
    
    - Provide a development variant of the app icon
      See https://gitlab.gnome.org/GNOME/Initiatives/issues/12
      for more info.

 data/icons/hicolor/scalable/apps/org.gnome.WeatherDevel.svg |  1 +
 data/icons/meson.build                                      | 11 ++++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/data/icons/hicolor/scalable/apps/org.gnome.WeatherDevel.svg 
b/data/icons/hicolor/scalable/apps/org.gnome.WeatherDevel.svg
new file mode 100644
index 0000000..ec8eaab
--- /dev/null
+++ b/data/icons/hicolor/scalable/apps/org.gnome.WeatherDevel.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; width="128" 
height="128"><defs><clipPath id="j"><path d="M0 0h128v128H0z"/></clipPath><clipPath id="a"><path d="M0 
0h128v128H0z"/></clipPath><clipPath id="d"><path d="M0 0h128v128H0z"/></clipPath><clipPath id="h"><path d="M0 
0h128v128H0z"/></clipPath><g id="g" clip-path="url(#d)" filter="url(#e)"><use xlink:href="#f"/></g><g id="f" 
clip-path="url(#a)"><path d="M20 20h88v88H20zm0 0" fill="#f5c211"/><path d="M126 64l-62 62L2 64 64 2zm0 0" 
fill="#f6d32d"/><path d="M112 64c0 26.508-21.492 48-48 48S16 90.508 16 64s21.492-48 48-48 48 21.492 48 48zm0 
0" fill="url(#b)"/><path d="M90 72a19.994 19.994 0 00-18.156 11.668A15.016 15.016 0 0065 82c-7.89.008-14.426 
6.129-14.95 14H50c-4.098 0-7.617 2.469-9.16 6H40v4c0 5.523 4.477 10 10 10h56c6.629 0 12-5.371 
12-12v-4h-.707a11.993 11.993 0 00-7.328-7.313c.015-.23.027-.457.035-.687 0-11.047-8.953-20-20-20zm0 0" 
fill="#dceafa"/><path d="M90 68a19.994 19.994 0 00
 -18.156 
 11.668A15.016 15.016 0 0065 78c-7.89.008-14.426 6.129-14.95 14H50c-5.523 0-10 4.477-10 10s4.477 10 10 
10h56c6.629 0 12-5.371 12-12a11.997 11.997 0 00-8.035-11.313c.015-.23.027-.457.035-.687 
0-11.047-8.953-20-20-20zm0 0" fill="url(#c)"/></g><g id="k" clip-path="url(#h)"><path d="M128 
80.64V128H0V80.64zm0 0" fill="url(#i)"/><path d="M13.309 80.64L60.664 128H81.88l-47.36-47.36zm42.421 
0L103.094 128h21.215L76.945 80.64zm42.43 0L128 110.48V89.27l-8.629-8.63zM0 88.548v21.215L18.238 128h21.215zm0 
0"/></g><g id="o" clip-path="url(#j)"><use xlink:href="#k" mask="url(#l)"/></g><linearGradient id="n" 
gradientUnits="userSpaceOnUse" x1="85" y1="107.162" x2="85" y2="86" gradientTransform="translate(-6 4)"><stop 
offset="0" stop-color="#eef4fc"/><stop offset="1" stop-color="#fff"/></linearGradient><linearGradient id="i" 
gradientUnits="userSpaceOnUse" x1="300" y1="235" x2="428" y2="235" gradientTransform="matrix(0 .37 -.98462 0 
295.385 -30.36)"><stop offset="0" stop-color="#f9f06b"/><stop of
 fset="1"
  stop-color="#f5c211"/></linearGradient><linearGradient id="c" gradientUnits="userSpaceOnUse" x1="85" 
y1="107.162" x2="85" y2="86" gradientTransform="translate(-6 4)"><stop offset="0" stop-color="#eef4fc"/><stop 
offset="1" stop-color="#fff"/></linearGradient><radialGradient id="b" gradientUnits="userSpaceOnUse" 
cx="280.994" cy="488.848" fx="280.994" fy="488.848" r="224" gradientTransform="matrix(.347 0 0 .34223 -33.506 
-129.482)"><stop offset="0" stop-color="#fdfacf"/><stop offset=".4" stop-color="#f9f06b"/><stop offset="1" 
stop-color="#f6d32d"/></radialGradient><radialGradient id="m" gradientUnits="userSpaceOnUse" cx="280.994" 
cy="488.848" fx="280.994" fy="488.848" r="224" gradientTransform="matrix(.347 0 0 .34223 -33.506 
-129.482)"><stop offset="0" stop-color="#fdfacf"/><stop offset=".4" stop-color="#f9f06b"/><stop offset="1" 
stop-color="#f6d32d"/></radialGradient><mask id="p"><use xlink:href="#g"/></mask><mask id="l"><g 
filter="url(#e)"><path fill-opacity=".8" d="M0 0h128
 v128H0z"
 /></g></mask><filter id="e" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" 
height="100%"><feColorMatrix in="SourceGraphic" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 
0"/></filter></defs><path d="M20 20h88v88H20zm0 0" fill="#f5c211"/><path d="M126 64l-62 62L2 64 64 2zm0 0" 
fill="#f6d32d"/><path d="M112 64c0 26.508-21.492 48-48 48S16 90.508 16 64s21.492-48 48-48 48 21.492 48 48zm0 
0" fill="url(#m)"/><path d="M90 72a19.994 19.994 0 00-18.156 11.668A15.016 15.016 0 0065 82c-7.89.008-14.426 
6.129-14.95 14H50c-4.098 0-7.617 2.469-9.16 6H40v4c0 5.523 4.477 10 10 10h56c6.629 0 12-5.371 
12-12v-4h-.707a11.993 11.993 0 00-7.328-7.313c.015-.23.027-.457.035-.687 0-11.047-8.953-20-20-20zm0 0" 
fill="#dceafa"/><path d="M90 68a19.994 19.994 0 00-18.156 11.668A15.016 15.016 0 0065 78c-7.89.008-14.426 
6.129-14.95 14H50c-5.523 0-10 4.477-10 10s4.477 10 10 10h56c6.629 0 12-5.371 12-12a11.997 11.997 0 
00-8.035-11.313c.015-.23.027-.457.035-.687 0-11.047-8.953-20-20-20zm0 0" fill="ur
 l(#n)"/>
 <use xlink:href="#o" mask="url(#p)"/></svg>
\ No newline at end of file
diff --git a/data/icons/meson.build b/data/icons/meson.build
index 0e191eb..99a98c0 100644
--- a/data/icons/meson.build
+++ b/data/icons/meson.build
@@ -1,8 +1,13 @@
+if profile == 'Devel'
+  icon = '@0@.svg'.format(weather_id)
+else
+  icon = '@0@.svg'.format(default_id)
+endif
+
 scalable_icondir = join_paths('hicolor', 'scalable', 'apps')
 install_data (
-  join_paths(scalable_icondir, 'org.gnome.Weather.svg'),
-  install_dir: join_paths(weather_datadir, 'icons', scalable_icondir),
-  rename: '@0@.svg'.format(weather_id)
+  join_paths(scalable_icondir, icon),
+  install_dir: join_paths(weather_datadir, 'icons', scalable_icondir)
 )
 
 symbolic_icondir = join_paths('hicolor', 'symbolic', 'apps')


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