Browse Source

chore: add icon for beta version

Gerald 4 years ago
parent
commit
c9aa4606dd
3 changed files with 20 additions and 1 deletions
  1. 1 1
      gulpfile.js
  2. BIN
      src/resources/icon-beta.png
  3. 19 0
      src/resources/icon-beta.svg

+ 1 - 1
gulpfile.js

@@ -85,7 +85,7 @@ async function createIcons() {
   const ALPHA = .5;
   const dist = `${DIST}/public/images`;
   await fs.mkdir(dist, { recursive: true });
-  const icon = Sharp('src/resources/icon.png');
+  const icon = Sharp(`src/resources/icon${pkg.beta ? '-beta' : ''}.png`);
   const gray = icon.clone().grayscale();
   const transparent = icon.clone().composite([{
     input: Buffer.from([255, 255, 255, 256 * ALPHA]),

BIN
src/resources/icon-beta.png


+ 19 - 0
src/resources/icon-beta.svg

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
+  <path d="M36.618 21.231c0 7.253-5.653 13.132-12.627 13.132-6.974 0-12.627-5.88-12.627-13.132 0-7.253 5.653-13.132 12.627-13.132 6.974 0 12.627 5.88 12.627 13.132z" transform="matrix(1.98135, 0, 0, 1.97902, -15.338, -5.844)" fill="#a05a2c" stroke="#000" stroke-width=".505"/>
+  <path d="M23.49 14.029c.574-5.597-.107-6.493-1.255-9.506 3.588 1.435 6.121 2.22 6.552 7.529 1.005-5.74.491-5.412-.37-10.147 3.158 3.013 6.528 3.737 6.097 8.472 2.163-2.639 2.458-3.278 3.06-7.66 2.568 2.984 4.661 7.246 2.22 11.407" fill="#a05a2c" stroke="#000"/>
+  <path d="M31.993 17.934C19.11 10.125 11.413 31.831 21.26 35.532c-16.486-1.76-9.147 16.747 4.247 21.17 3.633 1.2 8.532.813 13.883.177 15.248-1.814 22.309-34.556 4.596-24.218 9.81-14.758-6.28-18.63-11.992-14.727z" fill="#eaae85"/>
+  <g style="" transform="matrix(0.144385, -0.008259, 0.011689, 0.204329, -17.147209, -26.844898)">
+    <path d="M 217.298 240.965 L 314.658 248.862 L 414.639 240.661 C 434.695 262.473 513.751 318.911 421.668 315.588 C 379.395 314.062 315.58 298.049 315.58 298.049 C 314.834 300.612 245.521 318.786 205.236 320.53 C 146.772 323.062 176.386 269.736 217.298 240.965 Z" style="fill: rgb(82, 45, 20);"/>
+  </g>
+  <path d="M 27.151 27.359 C 27.151 29.941 24.355 31.555 22.118 30.264 C 21.08 29.664 20.44 28.557 20.44 27.359 C 20.44 24.777 23.237 23.163 25.474 24.454 C 26.512 25.053 27.151 26.161 27.151 27.359 Z" stroke="#a05a2c" style="fill: rgb(160, 90, 44);"/>
+  <path d="M 30.837 37.02 C 31.366 37.733 31.114 38.363 30.275 38.427 C 29.436 38.49 28.328 37.962 27.8 37.248 C 27.272 36.534 27.523 35.905 28.362 35.841 C 29.201 35.778 30.309 36.306 30.837 37.02 Z" style=""/>
+  <path d="M16.837 42c5.084 4.543 16.287 1.366 30.73-4.681.568 13.109-11.575 25.816-30.73 4.68z" fill="#fff" stroke="#000"/>
+  <path d="M 33.016 37.069 C 32.528 37.78 32.814 38.411 33.652 38.479 C 34.492 38.547 35.566 38.027 36.053 37.316 C 36.54 36.605 36.255 35.974 35.416 35.905 C 34.578 35.838 33.503 36.359 33.016 37.069 Z" style=""/>
+  <path d="M28.837 43.457l.395 7.992M37.76 40.887l.101 11.652" fill="none" stroke="#000"/>
+  <path d="M 43.484 26.456 C 43.484 23.949 40.769 22.382 38.598 23.636 C 37.59 24.217 36.969 25.292 36.969 26.456 C 36.969 28.962 39.683 30.529 41.855 29.275 C 42.863 28.694 43.484 27.619 43.484 26.456 Z" stroke="#a05a2c" transform="matrix(-1, 0, 0, -1, 80.453003, 52.911015)" style="fill: rgb(160, 90, 44);"/>
+  <path d="M9.278 27.832c-8.543-3.652.34-17.114 7.365-11.404" fill="#a05a2c" stroke="#000" stroke-linecap="round"/>
+  <path d="M10.847 24.794c-4.755-3.287.791-8.1 3.934-5.535" fill="#eaae85"/>
+  <path d="M55.53 27.715c7.772-4.978-1.544-17.988-8.232-11.032" fill="#a05a2c" stroke="#000" stroke-linecap="round"/>
+  <path d="M53.528 24.92c4.238-3.307.392-8.22-4.168-5.969" fill="#eaae85"/>
+</svg>