Merge branch 'master' of github.com:johannesjo/super-productivity

* 'master' of github.com:johannesjo/super-productivity:
  docs: add info about release etc
  docs: add info about release etc
  feat: change tray icon theme #554
  docs: add info how to do mac store screenshots
This commit is contained in:
Johannes Millan 2020-10-11 15:07:31 +02:00
commit ed09cc9cd8
2 changed files with 12 additions and 3 deletions

View file

@ -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.

View file

@ -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;
};