diff --git a/docs/build-and-publish-notes.md b/docs/build-and-publish-notes.md new file mode 100644 index 0000000000..b2bb853551 --- /dev/null +++ b/docs/build-and-publish-notes.md @@ -0,0 +1,8 @@ +# Publish notes + +## Mac Store Screenshots +* Set Resolution: 1280*800 (use detached dev tools to check for size) +* Press Cmd+Shift+4 +* Press Space +* Hold down Alt key and Click on window +* Scan results and remove all references to "demo," "trial," "beta," or "test" in your app description, app icon, screenshots, previews, release notes, and binary. diff --git a/electron/indicator.ts b/electron/indicator.ts index 24eb2bb930..601a0527f2 100644 --- a/electron/indicator.ts +++ b/electron/indicator.ts @@ -1,4 +1,4 @@ -import { App, ipcMain, Menu, Tray } from 'electron'; +import { App, ipcMain, Menu, Tray, nativeTheme } from 'electron'; import { existsSync, readFileSync } from 'fs'; // const dbus = require('./dbus'); import { errorHandler } from './error-handler'; @@ -53,7 +53,9 @@ export const initIndicator = ({ if (IS_MAC) { trayIcoFile = 'tray-icoTemplate.png'; } else { - trayIcoFile = 'tray-ico.png'; + trayIcoFile = nativeTheme.shouldUseDarkColors + ? 'tray-ico.png' + : 'tray-icoTemplate.png'; } tray = new Tray(ICONS_FOLDER + trayIcoFile); @@ -186,4 +188,3 @@ function createContextMenu(showApp, quitApp) { export const isRunning = () => { return isIndicatorRunning || isGnomeShellExtensionRunning; }; -