张恒

--no commit message

// 这里是定义菜单的地方,详情请查看 https://electronjs.org/docs/api/menu
const { dialog } = require('electron')
const menu = [{
label: '文档操作',
submenu: [{
label: '撤销',
accelerator: 'CmdOrCtrl+Z',
role: 'undo'
const menu = [
{
label: '设置',
submenu: [{
label: '快速重启',
accelerator: 'F5',
role: 'reload'
}, {
label: '退出',
accelerator: 'CmdOrCtrl+F4',
role: 'close'
}]
}, {
label: '复制',
accelerator: 'CmdOrCtrl+C',
role: 'copy'
label: '帮助',
submenu: [{
label: '切换到开发者模式',
accelerator: 'CmdOrCtrl+I',
role: 'toggledevtools'
}, {
label: '关于',
role: 'about',
click: function () {
dialog.showMessageBox({
title: '关于',
type: 'info',
message: '存放显示这个的信息是在,src/main/menu.js中,请自行修改'
})
}
}]
}]
},
{
label: '设置',
submenu: [{
label: '快速重启',
accelerator: 'F5',
role: 'reload'
}, {
label: '退出',
accelerator: 'CmdOrCtrl+F4',
role: 'close'
}]
}, {
label: '帮助',
submenu: [{
label: '切换到开发者模式',
accelerator: 'CmdOrCtrl+I',
role: 'toggledevtools'
}, {
label: '关于',
role: 'about',
click: function () {
dialog.showMessageBox({
title: '关于',
type: 'info',
message: '存放显示这个的信息是在,src/main/menu.js中,请自行修改'
})
}
}]
}]
export default menu
......
......@@ -14,7 +14,6 @@ function createMainWindow () {
useContentSize: true,
width: 1000,
show: false,
// transparent: true,
titleBarStyle: 'hidden',
webPreferences: {
nodeIntegration: true
......@@ -39,7 +38,7 @@ function loadindWindow (loadingURL) {
width: 400,
height: 600,
frame: false,
backgroundColor: '#222428',
transparent: true,
webPreferences: { experimentalFeatures: true }
})
......@@ -48,11 +47,12 @@ function loadindWindow (loadingURL) {
loadWindow.show()
setTimeout(() => {
createMainWindow()
loadWindow.destroy()
}, 2000)
// setTimeout(() => {
// createMainWindow()
// loadWindow.destroy()
// }, 2000)
}
function initWindow (loadingURL) {
if (config.UseStartupChart) {
return loadindWindow(loadingURL)
......
......@@ -13,10 +13,7 @@
}
html body {
background: #222428;
/* on the windows it's con't use l don't why */
/* -webkit-backdrop-filter: brightness(150%) blur(30px);
backdrop-filter: brightness(150%) blur(30px); */
background-size: 163px;
font: 14px/21px Monaco, sans-serif;
color: #999;
......