From 410f653eaef0bb1ab8131405cf294bfee0a677ec Mon Sep 17 00:00:00 2001 From: Sakii <13037299+SakiiCode@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:06:26 +0200 Subject: [PATCH 1/5] Add monochrome tray icon toggle --- res/img/monochrome.ico | Bin 0 -> 74814 bytes res/img/monochrome.png | Bin 0 -> 8020 bytes src/@types/global.d.ts | 5 +++-- src/electron-main.ts | 8 +++++--- src/i18n/strings/en_EN.json | 1 + src/tray.ts | 28 ++++++++++++++++++++++++++-- 6 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 res/img/monochrome.ico create mode 100644 res/img/monochrome.png diff --git a/res/img/monochrome.ico b/res/img/monochrome.ico new file mode 100644 index 0000000000000000000000000000000000000000..6324ab8d6592300a572c1bed96b995943bdd2260 GIT binary patch literal 74814 zcmeHOJ+dRW5$4k?*K?JFjqDAXI8de|P)Cph$2!U|^f45wHn5K%9zjQ7=x_rETPkVk zZU94c1Ks!`0dQvcMpciE{`%+p8kiaC?e1>(0{`LlvitMy+rPi;{s#89*0I}tWBs_4 zuFK^jx!-;76L_D%6HMTx?lR9BeBRjq@Y#a@;pdoZ?lm)DpLJR)qlZbne~>Vg#@GFv z23Ke~g2B{VwQDtkR(u{%=l;9k0i@fuyk`U}dgSRtyL|w9&6OdyjbLRWb-K66*Q>1( zsU5*8MW#sC4Iou%tyskb)+#a0yLbTUGV4VP2e4j&S?2i(WJ|0&;C%p@39Ng23)rXi z7Zg}~NNNCU*H*+|A3#z1>Vs7Mt5;SiKp8+`_WHwQ{p;6NtUw$w-Ef~^5G9`*|mi&t<*sESEgrcxLpnso*c5wT@P<8`oJ^B9I??40Qyx10a03J;)_-jf-|IW$7 z_1ilz_&IP#9=QF1Xu2FW0BAa_7i$z8dMX}m7Ta?%u$7k)suk8gxUV&C(q4xkH+K2( zuGVn^>}&Cn`cBhylc~Mfdw((pKObB)@x` z0;y6+cV2@UNZLw#gXr~cQzBJ}=}l`?eL-4@YZSfSeM+>lnEp@W-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lNhT9X$K`n2#F##c`bGL=%L3+yj5@86C{uQ$hGLAnmaK8yy(F zObCv<@k%!Y^T~E%KEEKJ;CweR5;lO~6WeXXVFO4>F`wWtZA>B;&lho`C&pnrdHo|P zjwYidfzd9}M5K(`JGgC8&S)sm40ckwZSiKYot~%xA!EGaObd zpPwe!yw6eo7herF|96h_(*lPNk1Ov_b^{LI*C?Ok7oHENjqElaUY?J)JK=}D=l)0Z z2agNDj(b`W^G_IPFPd*XfS(-*9|x$98vHde9P{584*6t&kbjKw$pCCVabQQ%4ptzE z6hyUT0EoX#CqwUOej;uyTmpXF{oAkYFIr9rnG5sz1rsOFlNf&k+<$SOqI}!{FJL0J z?SmWOcOcHk=e6GfTFdc-6o13h`bQgp`1Q-XkiSQKRzOO*@@ByE_f{b5wYUHr09x{$z3Hqh%aU zT`bn7>+&tmPKS_B<zu&U?jGmBxrkn+w!n+vfzx?1h z&i~g${sHhK!(UHyx%clN=YC;0oS&a)JlxF;fBEMR9NxX214ppr`2h&aw=?`mTyJdJ zabOP5{r>y|+wHjiK8MqLIZodlayUDUae;|GYhoDQMS_#K*t3fGoe3xU7<;`39_A;% ziY>s;vDbUxVV}d38w>|BiNk?T4j68TBtBiz0|GcTVDmsYdAXs5@50mo@m-h_XrAYZ z0qik9ae@wrCj?9eKZdmDwV|I7VCW}aSMGJB?!ex(*N>oswF%nCF$5|1sB3?@{4opS YpVM4lKBM*vor(G5A3PIRf3@lV2kaw2UH||9 literal 0 HcmV?d00001 diff --git a/res/img/monochrome.png b/res/img/monochrome.png new file mode 100644 index 0000000000000000000000000000000000000000..5f9d0d7dd74cb4026746bac6be62ffd044ad27fd GIT binary patch literal 8020 zcmX9@XIN8B(>_V)2na|KM3gGMgx*C_Lhro<&>#X54ZQ|IlqM2tC?XPiH&kgyl%@fs zgS4Om(oqqR=9lOFew=I1HQQ!qW@l&ai8nL3&BVaN0000JLjR@(06-|e5P*(`(l|XT zLs1%fw7xwC0GQwZ_d)vn%I;8z7yb3@{4M=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zO?Y*(yEgs3gW6vBz~dC^_g_}K}1*2_o+^0A4JE@b{t;qd*h0GP7|5w zX|y_bsRVMIJ;VQtE_0(teC-qX4;n)oT8*jks%5)%yfY|)+%A~JHBr?7oWuXCthph% z;9=5~%9`!59I=Z%koo!0fAn>Cq31e$vZ?8U4M-1*m;nq!ihwd#)H$=g}N!0$$VAs_04Pi4su`M1hgum|oMCQ~bQi^gy$1Dwnp9Q-feR5b7m)mq_2be%2(; var trayConfig: { - // eslint-disable-next-line camelcase - icon_path: string; + color_icon_path: string; // eslint-disable-line camelcase + monochrome_icon_path: string; // eslint-disable-line camelcase brand: string; }; var store: Store<{ @@ -31,6 +31,7 @@ declare global { autoHideMenuBar?: boolean; locale?: string | string[]; disableHardwareAcceleration?: boolean; + monochrome?: boolean; }>; } /* eslint-enable no-var */ diff --git a/src/electron-main.ts b/src/electron-main.ts index febd87b..9ff8f8f 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -212,9 +212,11 @@ async function setupGlobals(): Promise { // The tray icon // It's important to call `path.join` so we don't end up with the packaged asar in the final path. - const iconFile = `element.${process.platform === "win32" ? "ico" : "png"}`; + const colorIconFile = `element.${process.platform === "win32" ? "ico" : "png"}`; + const monochromeIconFile = `monochrome.${process.platform === "win32" ? "ico" : "png"}`; global.trayConfig = { - icon_path: path.join(resPath, "img", iconFile), + monochrome_icon_path: path.join(resPath, "img", monochromeIconFile), + color_icon_path: path.join(resPath, "img", colorIconFile), brand: global.vectorConfig.brand || "Element", }; @@ -453,7 +455,7 @@ app.on("ready", async () => { titleBarStyle: process.platform === "darwin" ? "hidden" : "default", trafficLightPosition: { x: 9, y: 8 }, - icon: global.trayConfig.icon_path, + icon: global.trayConfig.color_icon_path, show: false, autoHideMenuBar: global.store.get("autoHideMenuBar", true), diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 2bdb0bc..cc776da 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -14,6 +14,7 @@ "redo": "Redo", "select_all": "Select All", "show_hide": "Show/Hide", + "toggle_monochrome": "Monochrome Icon", "undo": "Undo", "zoom_in": "Zoom In", "zoom_out": "Zoom Out" diff --git a/src/tray.ts b/src/tray.ts index 339ca83..f633380 100644 --- a/src/tray.ts +++ b/src/tray.ts @@ -38,8 +38,20 @@ function toggleWin(): void { } } +function toggleMonochrome(): void { + const monochrome = !isMonochrome(); + if (monochrome) { + trayIcon?.setImage(nativeImage.createFromPath(global.trayConfig.monochrome_icon_path)); + } else { + trayIcon?.setImage(nativeImage.createFromPath(global.trayConfig.color_icon_path)); + } + global.store.set("monochrome", monochrome); + initApplicationMenu(); +} + interface IConfig { - icon_path: string; // eslint-disable-line camelcase + color_icon_path: string; // eslint-disable-line camelcase + monochrome_icon_path: string; // eslint-disable-line camelcase brand: string; } @@ -49,10 +61,16 @@ function getUuid(): string { return global.vectorConfig["uuid"] || "eba84003-e499-4563-8e9d-166e34b5cc25"; } +function isMonochrome(): boolean { + return global.store.get("monochrome", process.platform === "linux"); +} + export function create(config: IConfig): void { // no trays on darwin if (process.platform === "darwin" || trayIcon) return; - const defaultIcon = nativeImage.createFromPath(config.icon_path); + const defaultIcon = nativeImage.createFromPath( + isMonochrome() ? config.monochrome_icon_path : config.color_icon_path, + ); let guid: string | undefined; if (process.platform === "win32" && app.isPackaged) { @@ -114,6 +132,12 @@ export function initApplicationMenu(): void { } const contextMenu = Menu.buildFromTemplate([ + { + label: _t("action|toggle_monochrome"), + click: toggleMonochrome, + type: "checkbox", + checked: isMonochrome(), + }, { label: _t("action|show_hide"), click: toggleWin, From 967fa056a2818dfc83841f7dc64ce50b8d163458 Mon Sep 17 00:00:00 2001 From: Sakii <13037299+SakiiCode@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:20:45 +0200 Subject: [PATCH 2/5] Change to simpler icon --- res/img/monochrome.ico | Bin 74814 -> 4286 bytes res/img/monochrome.png | Bin 8020 -> 7336 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/res/img/monochrome.ico b/res/img/monochrome.ico index 6324ab8d6592300a572c1bed96b995943bdd2260..540d8ea39ddc54fbc93d443a2a900c17baf18547 100644 GIT binary patch literal 4286 zcmds)+iz4=6o=0+K!XsbAa{XQ3Z@Wv^pX%#{|GTg0+9rppdmmagaGN3n!p?XL*)fE zHK0b2_)rs#T%!VN2!ReNJkMhv#vZ?~cAxASX3FHGjS0Wz>)HF9z1F_0byiQ4q`*&i zcjE8ld}orZNRp%%xRtyK-hbXSJUpDFX*w4=VKuCP;%x7eISSAX@5ASC8y>+u_z33A z)*A4=435El_y-#0TF8Kz7k)RxH&BCSay=Je!A#GN&tCWmVolKb3%-Igup8FR!rV*o z`!&S+o6ZT?1oOb0Fb^HO5N0F?@S|UIDn9dH>F@BFd-V$M!7uO!cuwbF53GgUM}ln^ znAbt>d&kJgNamCNBDfj`L|51RI~;~3nL(S4p`ju7whuy{8}E}ax$oeH{(Sfp!Z@0B zavkP~C9!QWz6hT|kh!+0nFH>7&U@i3T!ts$dSe-vEzRt`$1~?!0`sT(i)sH1LGEE* zEBh%M{d9ouOBo(RtV?v3HTvM5b9=Vdk56DFSWh27kndQdY0Exi%}evtybLl%$DuKX z&Sgzg#%m{7>&zde-L96CwRq6q-|u;Bhd&|cA&s8cg#H?c$9NWVU_aaf^J`6P({39( z&*3Pz2W4J-2$>7o){WmF$h|cg42)aNc%O%@jeg!?Cu|CICnF;p# zv=+Jt|4xrU&|Ml?O`vU@4nlZmJgY_JV5|fS^Y->f%ZN6{v&(Tpz-# zIp=>DTk}}C*B9Y!2>0~8I`&Q9HI^ad3C;8dybg8mOKjKJW~^s<8iI_a=kXF4ck`?a zbDP*Y?mLL(nH+%)U>qCG>iRr4?q5QX?|;cbTweflz2$cr&$hu$h~=3WGuQtyyaOxi zCZ6hWzX#%X*}Qvdugz@3J;u9+D-g$mZYJY+4kl}LWM>ThK8y3%8WM)IeZ|I_coNK& z;E!geYqS={4(Y!Eo>P#qud8+O_-D1T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!yw6eo7herF|96h_(*lPNk1Ov_b^{LI*C?Ok7oHENjqElaUY?J)JK=}D=l)0Z z2agNDj(b`W^G_IPFPd*XfS(-*9|x$98vHde9P{584*6t&kbjKw$pCCVabQQ%4ptzE z6hyUT0EoX#CqwUOej;uyTmpXF{oAkYFIr9rnG5sz1rsOFlNf&k+<$SOqI}!{FJL0J z?SmWOcOcHk=e6GfTFdc-6o13h`bQgp`1Q-XkiSQKRzOO*@@ByE_f{b5wYUHr09x{$z3Hqh%aU zT`bn7>+&tmPKS_B<zu&U?jGmBxrkn+w!n+vfzx?1h z&i~g${sHhK!(UHyx%clN=YC;0oS&a)JlxF;fBEMR9NxX214ppr`2h&aw=?`mTyJdJ zabOP5{r>y|+wHjiK8MqLIZodlayUDUae;|GYhoDQMS_#K*t3fGoe3xU7<;`39_A;% ziY>s;vDbUxVV}d38w>|BiNk?T4j68TBtBiz0|GcTVDmsYdAXs5@50mo@m-h_XrAYZ z0qik9ae@wrCj?9eKZdmDwV|I7VCW}aSMGJB?!ex(*N>oswF%nCF$5|1sB3?@{4opS YpVM4lKBM*vor(G5A3PIRf3@lV2kaw2UH||9 diff --git a/res/img/monochrome.png b/res/img/monochrome.png index 5f9d0d7dd74cb4026746bac6be62ffd044ad27fd..3aa1895fa5f828529a2bc5d24b1af1e41149d768 100644 GIT binary patch literal 7336 zcma)h_g7QR_w`LeuOhvJbd}ygq)P%yk)qNSxDru7={>PaCm=o2qKHZ}h_pZ~fM5U# zC`AZG1wu=ZD)r6tdH;d$54Wsy_ROp`GiT21eV#bl+i-J;aR30ojeuKS1ON!*7Xq-c zFg~7lUV@Addno)$7y$5m`tN~shrIM>7)8UaFNZsafZ{*GoW ze4VT3oObW7gnoCc_2#=7=;+7?)oPRtma;Vw1gp%;Nv>3MLt&HO?SHU_3x1iyq_$lbgz6 z2#lh!P^-@54V{C9p<{@6V(RQb2Q&lVh4L1REsGuUTg;UM{&4bN;(HW7%1Q7+j98O! zKF4{;i~O-qf}I=%$1Oq-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CBrHGHYH)LMd?0<@gZfjW7WOu2xJV? zbW`^2DgH6St>Psn<(P~gAgbi1TBlJbRwpg5Bd;niC!dardRMo3@EfU<>*Bu%LlnB^ zY&>86_)R9v%}P<~*ul(-vF!(+ay%@}+^%a@r2E2rZj4_`8twoauhr>FrGn&t>>ro@ Zfgz0_toK$MjzQE5u5Ws)Mi24i{{Ti9QicEk From 21767505861c2b0a9c5035c0e43783d29b6daf37 Mon Sep 17 00:00:00 2001 From: Sakii <13037299+SakiiCode@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:56:21 +0200 Subject: [PATCH 3/5] Remove context item and replace with setting --- src/@types/global.d.ts | 2 +- src/settings.ts | 9 +++++++++ src/tray.ts | 34 +++++++++++++--------------------- 3 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 7868f33..6a7a394 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -31,7 +31,7 @@ declare global { autoHideMenuBar?: boolean; locale?: string | string[]; disableHardwareAcceleration?: boolean; - monochrome?: boolean; + monochromeIcon?: boolean; }>; } /* eslint-enable no-var */ diff --git a/src/settings.ts b/src/settings.ts index 50e3a08..b4a13ad 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -67,4 +67,13 @@ export const Settings: Record = { global.store.set("disableHardwareAcceleration", !value); }, }, + "Electron.monochromeIcon": { + async read(): Promise { + return tray.isMonochrome(); + }, + async write(value: any): Promise { + global.store.set("monochromeIcon", value); + tray.refreshIcon(); + }, + }, }; diff --git a/src/tray.ts b/src/tray.ts index f633380..b863238 100644 --- a/src/tray.ts +++ b/src/tray.ts @@ -28,6 +28,19 @@ export function destroy(): void { } } +export function isMonochrome(): boolean { + return global.store.get("monochromeIcon", process.platform === "linux"); +} + +export function refreshIcon(): void { + const monochrome = isMonochrome(); + if (monochrome) { + trayIcon?.setImage(nativeImage.createFromPath(global.trayConfig.monochrome_icon_path)); + } else { + trayIcon?.setImage(nativeImage.createFromPath(global.trayConfig.color_icon_path)); + } +} + function toggleWin(): void { if (global.mainWindow?.isVisible() && !global.mainWindow.isMinimized() && global.mainWindow.isFocused()) { global.mainWindow.hide(); @@ -38,17 +51,6 @@ function toggleWin(): void { } } -function toggleMonochrome(): void { - const monochrome = !isMonochrome(); - if (monochrome) { - trayIcon?.setImage(nativeImage.createFromPath(global.trayConfig.monochrome_icon_path)); - } else { - trayIcon?.setImage(nativeImage.createFromPath(global.trayConfig.color_icon_path)); - } - global.store.set("monochrome", monochrome); - initApplicationMenu(); -} - interface IConfig { color_icon_path: string; // eslint-disable-line camelcase monochrome_icon_path: string; // eslint-disable-line camelcase @@ -61,10 +63,6 @@ function getUuid(): string { return global.vectorConfig["uuid"] || "eba84003-e499-4563-8e9d-166e34b5cc25"; } -function isMonochrome(): boolean { - return global.store.get("monochrome", process.platform === "linux"); -} - export function create(config: IConfig): void { // no trays on darwin if (process.platform === "darwin" || trayIcon) return; @@ -132,12 +130,6 @@ export function initApplicationMenu(): void { } const contextMenu = Menu.buildFromTemplate([ - { - label: _t("action|toggle_monochrome"), - click: toggleMonochrome, - type: "checkbox", - checked: isMonochrome(), - }, { label: _t("action|show_hide"), click: toggleWin, From d396eab275129f8e9ed1e11c1c57e7b57db706bf Mon Sep 17 00:00:00 2001 From: Sakii <13037299+SakiiCode@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:44:48 +0200 Subject: [PATCH 4/5] Circular icons --- res/img/monochrome.ico | Bin 4286 -> 4286 bytes res/img/monochrome.png | Bin 7336 -> 6429 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/res/img/monochrome.ico b/res/img/monochrome.ico index 540d8ea39ddc54fbc93d443a2a900c17baf18547..4dd249e60167ac1aa0891006c9fd349535a6cd1f 100644 GIT binary patch literal 4286 zcmcJTOK2295QclRNj74li!Txqa1kP23{gCIQ}7}l1Os`362XIy+&p-b%|#`65Dzhl zieAJZhzNonSH_4~)3Fguyu=_N@mf4aNsud1Hzp6XF!68th5 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qgHWO6)FQJOkB1UEHhgLz|#Yl536jj+0>N z8u*l;R8jY1%%x@Ww>XwrZd#w@@o-FZx(s+i;>SpZO(U{#PQb@0xO+D}be7$bph#gYGqdffjYKL3t-Iow@vT>}J0l@UN#+gsIG H_}=}0AR^9x From c8f45ca6b5948796376d0ffabd5cf99fe73243b7 Mon Sep 17 00:00:00 2001 From: Sakii <13037299+SakiiCode@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:02:27 +0200 Subject: [PATCH 5/5] Remove unnecessary translation string --- src/i18n/strings/en_EN.json | 1 - 1 file changed, 1 deletion(-) diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index cc776da..2bdb0bc 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -14,7 +14,6 @@ "redo": "Redo", "select_all": "Select All", "show_hide": "Show/Hide", - "toggle_monochrome": "Monochrome Icon", "undo": "Undo", "zoom_in": "Zoom In", "zoom_out": "Zoom Out"