mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-24 16:37:26 +00:00
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:
commit
ed09cc9cd8
2 changed files with 12 additions and 3 deletions
8
docs/build-and-publish-notes.md
Normal file
8
docs/build-and-publish-notes.md
Normal 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.
|
||||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue