|
1 | 1 | import { is } from '@electron-toolkit/utils';
|
2 | 2 | import remote from '@electron/remote/main';
|
3 |
| -import { app, BrowserWindow, shell } from 'electron'; |
| 3 | +import { app, BrowserWindow, nativeTheme, shell } from 'electron'; |
4 | 4 | import electronLocalshortcut from 'electron-localshortcut';
|
5 | 5 | import { join } from 'path';
|
6 | 6 | import url from 'url';
|
@@ -67,6 +67,7 @@ const createMain = () => {
|
67 | 67 | y: db.status ? db.position.y : null,
|
68 | 68 | minWidth: 1000,
|
69 | 69 | minHeight: 640,
|
| 70 | + backgroundColor: nativeTheme.shouldUseDarkColors ? '#000': '#fff', |
70 | 71 | titleBarStyle: 'hiddenInset',
|
71 | 72 | show: false,
|
72 | 73 | frame: false,
|
@@ -152,6 +153,7 @@ const createPlay = () => {
|
152 | 153 | y: db.status ? db.position.y : null,
|
153 | 154 | minWidth: 480,
|
154 | 155 | minHeight: 280,
|
| 156 | + backgroundColor: nativeTheme.shouldUseDarkColors ? '#000': '#fff', |
155 | 157 | titleBarStyle: 'hiddenInset',
|
156 | 158 | show: false,
|
157 | 159 | frame: false,
|
@@ -244,6 +246,7 @@ const createLoad = () => {
|
244 | 246 | y: db.status ? db.position.y : null,
|
245 | 247 | minWidth: 1000,
|
246 | 248 | minHeight: 640,
|
| 249 | + backgroundColor: nativeTheme.shouldUseDarkColors ? '#000': '#fff', |
247 | 250 | titleBarStyle: 'hiddenInset',
|
248 | 251 | show: false,
|
249 | 252 | frame: false,
|
|
0 commit comments