From f388db4cdba26dc1a1df1932f69492e0bd1fad62 Mon Sep 17 00:00:00 2001 From: Ghost <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 2 Aug 2020 11:00:40 +0200 Subject: [PATCH] Icon experimentation --- Dashboard/app/main/index.js | 8 ++++---- Dashboard/dist-assets/icon2.ico | Bin 0 -> 32038 bytes Dashboard/dist-assets/tray.ico | Bin 0 -> 32038 bytes 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 Dashboard/dist-assets/icon2.ico create mode 100644 Dashboard/dist-assets/tray.ico diff --git a/Dashboard/app/main/index.js b/Dashboard/app/main/index.js index 5f0a911..3eda9ba 100644 --- a/Dashboard/app/main/index.js +++ b/Dashboard/app/main/index.js @@ -1,5 +1,5 @@ import path from 'path'; -import { app, crashReporter, BrowserWindow, Menu, Tray } from 'electron'; +import { app, BrowserWindow, Menu, Tray } from 'electron'; const screenz = require('screenz'); const isDevelopment = process.env.NODE_ENV === 'development'; @@ -52,7 +52,7 @@ app.on('ready', async () => { webPreferences: { nodeIntegration: true, }, - icon: path.join(__dirname, '../../dist-assets/icon.ico'), + icon: path.join(__dirname, '../../dist-assets/icon2.ico'), }); mainWindow.setMenu(null); @@ -101,7 +101,7 @@ app.on('ready', async () => { }); function createTray() { - let appIcon = new Tray(path.join(__dirname, '../../dist-assets/icon.ico')); + const appIcon = new Tray(path.join(__dirname, '../../dist-assets/tray.ico')); const contextMenu = Menu.buildFromTemplate([ { label: 'Show', @@ -124,7 +124,7 @@ app.on('ready', async () => { }, ]); - appIcon.on('click', (event) => { + appIcon.on('click', () => { mainWindow.show(); }); diff --git a/Dashboard/dist-assets/icon2.ico b/Dashboard/dist-assets/icon2.ico new file mode 100644 index 0000000000000000000000000000000000000000..5f0b268f1c731528c74ddca3a07f16d22380acac GIT binary patch literal 32038 zcmeI53yd9Q6~_k(w55eDp-_t8R-Q$96cuTpbc=!rR78UyfmmZAq9#6&q=4uyL9m)= zjhZOFY7|PsvjBz=k5~( z%a%3k3*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Ya9ITcX392KlYaQQtK>Kuj zS>bbF&@n&XK5rd<9bb=w$3WZhPkkxSo-Lw(r|I|4eLeerr=Kgab${*3))M9rBLrY5M*3?ruIuuj<6!%^f`D zalbo4TgUvKvldYXQ{pL1ni8fRJk1l`XKO!*m~o3@Vm`}TS3@Zay{aAIDLqV~i+ z$%}nYQLdtX#Mk#hT=`^CuDpH(UFim<{DZt4-P#lLBVG=}-EwC2C+>(B`{Jy=W!Vw` z5HE-A)DJF;KZ%DJM*#OeQ00S??0eZx+`EA*Jzs|rOwRyanY7=`A_@K0hAX-kKDJkL z4)+Pb{o5;cY2TO4n>Vp_FY<_za76DsO1}q&b1rz?iKF63-ki&}CkK5;&6o8wl=iG1 zF0FSqctLa=EG~OINqodgTu;-t2Ke$*8g@_O%i0dd-e4H`@_Cno&cys&yP{?I6W7!9 z%>=&(zUaGtg}>K_@9Tk{q5ERvqJ9$ z4ge>E%fKDLKgZM55dGc9ja~6+PtDKr?4>4;S>XGiOwoMknNQm>-^+1y%T2D!fu0F= zD-T0(a<}ks*M&6a^$A78N<86B)o=dtj}D8F`v-h4Z6r1jOC ztNE7^QTmBjx>~wUwp#|d)9Q!H(KXcv2-8IUO6jG8wI$N}@rb6bN9|_U(mtQX(bkQ| tz%7p`ugzESFJUQvmdMi@`47|@`ETjlqH*cfRzE7V@wevH=3AYG<^KW<*Kq&< literal 0 HcmV?d00001 diff --git a/Dashboard/dist-assets/tray.ico b/Dashboard/dist-assets/tray.ico new file mode 100644 index 0000000000000000000000000000000000000000..b48d8a3a04ee35f186b128b8f82bd586904c82e7 GIT binary patch literal 32038 zcmeI5d#qel6~+&3Y3;ix&{C<>2q*|hArMFfZ>a&IBA`)3ZKOU*swV#9qlE{3l@a!V}jt~!-8PZ zqGtQp#X&H#FbIw%23HuG{S?6h;tmw6*X!qi--kFSZQjKF3#?_=P1V4C?;pAH@YORcX{$@moT3^>srr|+b2Y_dOQZN@JIcUs#o z8M_C($M3f`V=KTKYx^Z*Yrz-&erq#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