mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-11 14:04:06 +08:00
禁用electron的拼写检查 & 设置窗体最小高度为60
This commit is contained in:
parent
d442fae447
commit
9fed8c4c7b
@ -17,6 +17,7 @@ export default () => {
|
|||||||
const createWindow = async (pluginInfo, viewInfo, view) => {
|
const createWindow = async (pluginInfo, viewInfo, view) => {
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
height: viewInfo.height,
|
height: viewInfo.height,
|
||||||
|
minHeight: 60,
|
||||||
width: viewInfo.width,
|
width: viewInfo.width,
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
titleBarStyle: 'hidden',
|
titleBarStyle: 'hidden',
|
||||||
@ -36,6 +37,7 @@ export default () => {
|
|||||||
webviewTag: true,
|
webviewTag: true,
|
||||||
devTools: true,
|
devTools: true,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
spellcheck: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
||||||
|
@ -41,6 +41,7 @@ export default () => {
|
|||||||
y,
|
y,
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
|
minHeight: 60,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
webSecurity: false,
|
webSecurity: false,
|
||||||
backgroundThrottling: false,
|
backgroundThrottling: false,
|
||||||
@ -48,6 +49,7 @@ export default () => {
|
|||||||
webviewTag: true,
|
webviewTag: true,
|
||||||
devTools: true,
|
devTools: true,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
spellcheck: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
||||||
|
@ -18,6 +18,7 @@ export default () => {
|
|||||||
const createWindow = async () => {
|
const createWindow = async () => {
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
height: 60,
|
height: 60,
|
||||||
|
minHeight: 60,
|
||||||
useContentSize: true,
|
useContentSize: true,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
width: 800,
|
width: 800,
|
||||||
@ -33,6 +34,7 @@ export default () => {
|
|||||||
webviewTag: true,
|
webviewTag: true,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
preload: path.join(__static, 'preload.js'),
|
preload: path.join(__static, 'preload.js'),
|
||||||
|
spellcheck: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
if (process.env.WEBPACK_DEV_SERVER_URL) {
|
||||||
|
@ -128,6 +128,7 @@ export default () => {
|
|||||||
standard: 'system-ui',
|
standard: 'system-ui',
|
||||||
serif: 'system-ui',
|
serif: 'system-ui',
|
||||||
},
|
},
|
||||||
|
spellcheck: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
window.setBrowserView(view);
|
window.setBrowserView(view);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user