set dark theme

This commit is contained in:
zhandouxiaojiji committed 2020-10-09 20:26:54 +08:00
1 parent d8cb328ac6
commit c10c6f3661
2 files changed
+6 -5

No files matched your search

+5 -4
View File
@@ -1,6 +1,7 @@
import { app, BrowserWindow, Menu, MenuItem, dialog } from 'electron'; import { app, BrowserWindow, Menu, MenuItem, dialog, nativeTheme } from 'electron';
let mainWindow: BrowserWindow = null; let mainWindow: BrowserWindow = null;
nativeTheme.themeSource = 'dark';
let createWindow = function () { let createWindow = function () {
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
width: 800, width: 800,
@@ -10,9 +11,9 @@ let createWindow = function () {
} }
// fullscreenable:false, // fullscreenable:false,
// maximizable:false // maximizable:false
}) });
mainWindow.webContents.openDevTools() mainWindow.webContents.openDevTools();
mainWindow.loadFile('index.html') mainWindow.loadFile('index.html');
mainWindow.on('closed', function () { mainWindow.on('closed', function () {
mainWindow = null mainWindow = null
}) })
+1 -1
View File
@@ -23,7 +23,7 @@ const data: MindData = {
export default class Hello extends React.Component { export default class Hello extends React.Component {
render() { render() {
return ( return (
<GGEditor style={{ background: "#1E1E1E" }}> <GGEditor style={{ background: "#242424" }}>
<Mind <Mind
style={{ width: 500, height: 500 }} style={{ width: 500, height: 500 }}
data={data} data={data}