Fix menubar icon color is not set correctly on Windows & Linux (#294)

This commit is contained in:
Quang Lam 2020-06-15 14:20:50 +07:00 committed by Lin Onetwo
parent ed8cf1866f
commit 15fef9fff6
4 changed files with 2 additions and 1 deletions

Binary file not shown.

BIN
public/menubar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

BIN
public/menubar@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -32,7 +32,8 @@ const createAsync = () => new Promise((resolve) => {
mb = menubar({
index: REACT_PATH,
icon: path.resolve(__dirname, '..', 'menubarTemplate.png'),
// icon template is not supported on Windows & Linux
icon: path.resolve(__dirname, 'images', process.platform === 'darwin' ? 'menubarTemplate.png' : 'menubar.png'),
preloadWindow: true,
tooltip: 'Singlebox',
browserWindow: {