From 5d3a0df1b52b193cbe204a0358e14329819cf6d3 Mon Sep 17 00:00:00 2001 From: Daniel Hobi Date: Tue, 16 Feb 2021 15:04:51 +0100 Subject: [PATCH] - Replace dark/light icon with template icon - (Re-)Create 3 different versions (dpi) of the icon --- src/main/index.js | 3 ++- static/assets/icon-darkmode.png | Bin 146 -> 0 bytes static/assets/icon-lightmode.png | Bin 98 -> 0 bytes static/assets/iconTemplate.png | Bin 0 -> 986 bytes static/assets/iconTemplate@2x.png | Bin 0 -> 979 bytes static/assets/iconTemplate@3x.png | Bin 0 -> 998 bytes 6 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 static/assets/icon-darkmode.png delete mode 100644 static/assets/icon-lightmode.png create mode 100644 static/assets/iconTemplate.png create mode 100644 static/assets/iconTemplate@2x.png create mode 100644 static/assets/iconTemplate@3x.png diff --git a/src/main/index.js b/src/main/index.js index 2d98296..b410483 100755 --- a/src/main/index.js +++ b/src/main/index.js @@ -2076,7 +2076,8 @@ function createTray() { } } - tray = new Tray(path.join(__static, '/assets/icon-darkmode.png')); + // *Template.png will be automatically inverted by electron: https://www.electronjs.org/docs/api/native-image#template-image + tray = new Tray(path.join(__static, '/assets/iconTemplate.png')); refreshTray(); diff --git a/static/assets/icon-darkmode.png b/static/assets/icon-darkmode.png deleted file mode 100644 index 730dd16bf99a419d13b84b0fed000383ca772c9f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 146 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;V{wqX6XVU3I`u#fXMsm#F#`j) zFbFd;%$g$s6l4qV32_C||NsAAdUO6=Ad9Ia$S;`TfAmD9tw5f*r;B4q#hl~>AgFKX hQ&_N$Pu9?Yfq}h-J2EdXbxM1SHhKU^&hqdgb`gbreGcz-6Ud}AGFIe|GP!ofvtDnm{r-UW|T;Lk; diff --git a/static/assets/iconTemplate.png b/static/assets/iconTemplate.png new file mode 100644 index 0000000000000000000000000000000000000000..cf076b6a22bf449307a4ee5c7e90ab59be5ffe1a GIT binary patch literal 986 zcmaJ=PiWIn91d=+G8rgd<{0de$(U%9CR?-hxj5SJScdQA?Qs!h(`~C2k+LGuB{%dA<291$M=1|zwd6TczJYWe1zk; z(ZaG;X6uRQI~HgE$)9b+meW+P(p6HYE#zY^W04vL1qU^786#`+`a8VHaYJY9N|jcP z6=)JiKoLd=9gnd&ZgDB}khz8_sNsg~s{D^vuX$iwDt|R)Bn>ZzoA&aSk5{*f6?1FN zOk4cYMX(q`Cg5O-K_^a7L)8%64D$@DNvpV-G^u1e5(%2TE6Rxom9R_sRu=|)oKZ?S%LTsQA(%N zk%lZM7$OmDx)g;8H<;=vXgDx^+oLvdL8ORkWP_?ai}WxB$Lq_wLAOk-U}A_oQ4*3- zNqz9u~_uARE5P8dsl+TzN3(V?>ExA!NN*#Zr?{5;Tbi za;plMF_3Ayk>PBIVHmLB1{Ap_E@&#xGz8nWU`EQxvx=Tq7Uoluq-Qf)dTv3MB~4Cg z*?C>=aW!IYIM}512!A7cAsGsBPLUw2~bkBkfArBm;3PK-T#`2y{J`Ph7N1#-8ir?#IR?3}wd aG(5)b9!!jXi%%YpZd*YwYR|LRZv6%uM>G!r literal 0 HcmV?d00001 diff --git a/static/assets/iconTemplate@2x.png b/static/assets/iconTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..4ea8cfcef83e88ceec0d85957fe8fb00aaa300cf GIT binary patch literal 979 zcmaJ=J#W)M7&a|bRcX{NAi;EUJ5ZI_u^T(J6;mZ~(psvcD2YTy9Q%@3seQ)25GSZe zurV^S!H85L(Uk!h`2m#>NQfU$)P=p=rAgX>VA;OASI_gjpZBs--c2msU1As}VeIKu zvI6=oE|7mT9R4B89b9bS8fxLb6+$NGpe6){XSHD!TF&6{SD0m(`E|G6zzuU>wUNhJ z6vM?{K-dhE-H8Ls?m`TjuS7R@NYM2#JKp_MYx0SS0f&gTh6Vj3_3-^JT z5=1^lUO6eGRY_LG3>ZHw@fJEQwW^oKzQ{>qI~WHl&-eR%uD`{hu+0mKqEHP{OcF#g z8u-|XlYX=|QP5#zhi-sf+zGj8HGMN#j~;)K#DsLTF(W))6|GRI$=Q7)2cvfI>|M_e{%n zeQMYkF-%i6{0LjV4Gmpmi3aDoj;iRADCY};yq(DiLNTAymGrhK3c4ui`AkuqaCKz& zJm}*I*SX}1Gr4paynuMtVdy@APANnl7$vQ`Gh@k@X6lW(&g@uHGr2qohNrE)(&~wc z%n#j82bUbCqYr&D?;#oN>Z^A*$)zY7dafRSKRx-7V8HTx?%Da<#3plN_2=QyCi{B* zw-YZg`^GLmcYSdcyt(~ZI$HU5czp8o8Z`tfzkW!kbIZ*0TW4SR^WzPA&5UAMf1iK! F;xBgEEl>ae literal 0 HcmV?d00001 diff --git a/static/assets/iconTemplate@3x.png b/static/assets/iconTemplate@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..335e8a5456fc8c2152b1706c1edc10b02b82801e GIT binary patch literal 998 zcmaJ=&ui0A9DmzH=IHPs9u$N}=3#7UUm`1zd%9QQAAK*y0+WF8eZOy@B4l}-=FVUb@|rx)a5Av zz;vaIYJANk|KwRduZ;hE%9l&5)MRzC&N?>5An%ej3@g6f!ZmEW+xOq&1pp?ldW|M) zT6YYG_@bTYh_N4XGyn^WacDamn87vN@&Z#h+B*=S=bFNbYGtgjh}&MdOL4us+;F-Z zj_wMJH{e2SZ~`AQ8^-=-5E-#4^mq-vPsEY{dn#rlzaij?6)OUqe9)eI#E`=7wAQFq;_p{2epelmqNW1%5QolZyW%!!1yBw5$> zghNr%Tq7NA2h5JsK{PX9Ksa)!7c!3oFk!UU$QCmN?&)y|emJBJqJElq!lc*^C0WcQ zAq^BQ>;J00Kh%y`4WIb?PvWSt9b&15BeF#uUbyv{#8hY$DYhA*4MH{tS**4RBT<`# zuvpjNtYtf1kO;2z5SC?Bf{59HgDc1sIEUzYuAw7U(F#RXo6qHBxm3s_Jv*-`GE!7j z$d!}<77=I5#{nB)-4m=f5}P!GA9BkGQ||$GmniXJFKELX?aSOqzCP9+?MrqfR^rY` zNoh}&dLZKclWd2L%MZiW#{utm${XAH_H~y(ie?4n8}XO#pWdDWFg0=W&7Z@M7tid> zJ|DY%bfNt6-u?@)pDI&y@NlyCi2BoGD+NG!{_yV3l^