style: modify theme style.

This commit is contained in:
jaywcjlove
2022-09-05 17:27:50 +08:00
parent 8d33e4dab2
commit 8720638f9d
12 changed files with 86 additions and 95 deletions

View File

@@ -14,15 +14,16 @@ export class App {
async createWindow(options: Options = {}, loadURL?: string) {
await app.whenReady();
const opts: Options = {
titleBarStyle: 'hidden', // 无标题栏
frame: false, // 创建无边窗口
width: 800,
// titleBarStyle: 'hiddenInset', // 无标题栏
// frame: false, // 创建无边窗口
width: 850,
height: 600,
minWidth: 850,
minHeight: 600,
center: true,
maximizable: true,
minimizable: true,
resizable: true,
// maximizable: true,
// minimizable: true,
// resizable: true,
webPreferences: {
// 多线程
nodeIntegrationInWorker: true,

View File

@@ -1,18 +1,4 @@
const styleStr = `.siderbar {
-webkit-app-region: drag;
}
.siderbar header h1 a, github-corners {
display: none;
}
article.content:before {
-webkit-app-region: drag;
position: absolute;
content: ' ';
display: block;
height: 41px;
width: 100%;
z-index: -1;
}`;
const styleStr = `.header .logo {}`;
document.addEventListener('DOMContentLoaded', () => {
const head = document.querySelector('head');