set dark theme
This commit is contained in:
1 parent
d8cb328ac6
commit
c10c6f3661
2 files changed
+6
-5
No files matched your search
@@ -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;
|
||||
nativeTheme.themeSource = 'dark';
|
||||
let createWindow = function () {
|
||||
mainWindow = new BrowserWindow({
|
||||
width: 800,
|
||||
@@ -10,9 +11,9 @@ let createWindow = function () {
|
||||
}
|
||||
// fullscreenable:false,
|
||||
// maximizable:false
|
||||
})
|
||||
mainWindow.webContents.openDevTools()
|
||||
mainWindow.loadFile('index.html')
|
||||
});
|
||||
mainWindow.webContents.openDevTools();
|
||||
mainWindow.loadFile('index.html');
|
||||
mainWindow.on('closed', function () {
|
||||
mainWindow = null
|
||||
})
|
||||
|
||||
@@ -23,7 +23,7 @@ const data: MindData = {
|
||||
export default class Hello extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<GGEditor style={{ background: "#1E1E1E" }}>
|
||||
<GGEditor style={{ background: "#242424" }}>
|
||||
<Mind
|
||||
style={{ width: 500, height: 500 }}
|
||||
data={data}
|
||||
|
||||
Reference in new issue
Block a user