bugfix: #22, style: 优化界面样式,logo 重做

This commit is contained in:
muwoo
2021-08-09 20:30:36 +08:00
parent ad21d3743f
commit 84423b5ae2
20 changed files with 426 additions and 99 deletions

View File

@@ -1,10 +1,20 @@
import { dialog, Menu, Tray, app, shell, ipcMain } from 'electron';
import { dialog, Menu, Tray, app, shell } from 'electron';
import path from 'path';
import pkg from '../../package.json';
import os from 'os';
import {commonConst} from './common/utils';
function createTray(window) {
return new Promise((resolve, reject) => {
const appIcon = new Tray(path.join(__static, './rocket.png'));
let icon;
if (commonConst.macOS()) {
icon = './icon@3x.png'
}else if (commonConst.windows()) {
icon = parseInt(os.release()) < 10 ? './icon@2x.png' : './icon.ico';
}else {
icon = 'icon@2x.png'
}
const appIcon = new Tray(path.join(__static, icon));
const contextMenu = Menu.buildFromTemplate([
{
label: "帮助文档", click: () => {