ソースを参照

feat: add custom app icon (book + pen, indigo gradient)

nonvioce 6 ヶ月 前
親
コミット
fde9c52860
3 ファイル変更、29 行追加、0 行削除
  1. 3 0
      electron-builder.yml
  2. BIN
      public/icon.png
  3. 26 0
      public/icon.svg

+ 3 - 0
electron-builder.yml

@@ -11,7 +11,10 @@ files:
   - "!node_modules/.cache/**/*"
 win:
   target: nsis
+  icon: public/icon.png
 mac:
   target: dmg
+  icon: public/icon.png
 linux:
   target: AppImage
+  icon: public/icon.png

BIN
public/icon.png


+ 26 - 0
public/icon.svg

@@ -0,0 +1,26 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="none">
+  <defs>
+    <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+      <stop offset="0%" stop-color="#4F46E5"/>
+      <stop offset="100%" stop-color="#7C3AED"/>
+    </linearGradient>
+  </defs>
+  <circle cx="256" cy="256" r="240" fill="url(#bg)"/>
+  <path d="M256 160 C256 120 220 100 190 105 C160 110 145 140 145 170 L145 360 C145 330 160 300 190 295 C220 290 256 310 256 350 Z" fill="white" opacity="0.95"/>
+  <path d="M256 160 C256 120 292 100 322 105 C352 110 367 140 367 170 L367 360 C367 330 352 300 322 295 C292 290 256 310 256 350 Z" fill="white" opacity="0.85"/>
+  <line x1="256" y1="165" x2="256" y2="350" stroke="#4F46E5" stroke-width="2" opacity="0.3"/>
+  <rect x="165" y="195" width="65" height="3" rx="1.5" fill="#CBD5E1"/>
+  <rect x="165" y="215" width="50" height="3" rx="1.5" fill="#CBD5E1"/>
+  <rect x="165" y="235" width="60" height="3" rx="1.5" fill="#CBD5E1"/>
+  <rect x="165" y="255" width="45" height="3" rx="1.5" fill="#CBD5E1"/>
+  <rect x="282" y="195" width="65" height="3" rx="1.5" fill="#CBD5E1"/>
+  <rect x="282" y="215" width="55" height="3" rx="1.5" fill="#CBD5E1"/>
+  <rect x="282" y="235" width="50" height="3" rx="1.5" fill="#CBD5E1"/>
+  <rect x="282" y="255" width="60" height="3" rx="1.5" fill="#CBD5E1"/>
+  <g transform="translate(340, 130) rotate(45)">
+    <rect x="-6" y="0" width="12" height="60" rx="4" fill="#1E293B"/>
+    <polygon points="-8,60 8,60 2,80 -2,80" fill="#475569"/>
+    <line x1="0" y1="60" x2="0" y2="78" stroke="#94A3B8" stroke-width="1"/>
+    <rect x="3" y="10" width="3" height="20" rx="1.5" fill="#475569"/>
+  </g>
+</svg>