π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Document the tray icon
Manav Rathi3123caea9261
diff --git a/desktop/src/main/init.ts b/desktop/src/main/init.tsindex 7f454f2e6a..eab63e076a 100644--- a/desktop/src/main/init.ts+++ b/desktop/src/main/init.ts@@ -77,9 +77,17 @@ export const createWindow = async () => {};export const setupTrayItem = (mainWindow: BrowserWindow) => {- const iconName = isPlatform("mac")- ? "taskbar-icon-Template.png"- : "taskbar-icon.png";+ // There are a total of 6 files corresponding to this tray icon.+ //+ // On macOS, use template images (filename needs to end with "Template.ext")+ // https://www.electronjs.org/docs/latest/api/native-image#template-image-macos+ //+ // And for each (template or otherwise), there are 3 "retina" variants+ // https://www.electronjs.org/docs/latest/api/native-image#high-resolution-image+ const iconName =+ process.platform == "darwin"+ ? "taskbar-icon-Template.png"+ : "taskbar-icon.png";const trayImgPath = path.join(isDev ? "build" : process.resourcesPath,iconName,