@@ -157,6 +157,7 @@ if (windowFromUserConfig) {
157
157
import { load as loadLocale , LocaleMessagesWithNameType } from '../node/locale' ;
158
158
import { setLastestRelease } from '../node/latest_desktop_release' ;
159
159
import { getAppRootPath } from '../node/getRootPath' ;
160
+ import { classicDark } from '../themes' ;
160
161
161
162
// Both of these will be set after app fires the 'ready' event
162
163
let logger : Logger | null = null ;
@@ -282,7 +283,8 @@ async function createWindow() {
282
283
minWidth,
283
284
minHeight,
284
285
fullscreen : false as boolean | undefined ,
285
- backgroundColor : '#000' ,
286
+ // Default theme is Classic Dark
287
+ backgroundColor : classicDark [ '--background-primary-color' ] ,
286
288
webPreferences : {
287
289
nodeIntegration : true ,
288
290
enableRemoteModule : true ,
@@ -530,6 +532,8 @@ async function showPasswordWindow() {
530
532
minWidth,
531
533
minHeight,
532
534
autoHideMenuBar : false ,
535
+ // Default theme is Classic Dark
536
+ backgroundColor : classicDark [ '--background-primary-color' ] ,
533
537
webPreferences : {
534
538
nodeIntegration : true ,
535
539
enableRemoteModule : true ,
@@ -604,7 +608,7 @@ async function showAbout() {
604
608
resizable : true ,
605
609
title : locale . messages . about ,
606
610
autoHideMenuBar : true ,
607
- backgroundColor : '#000' ,
611
+ backgroundColor : classicDark [ '--background-primary-color' ] ,
608
612
show : false ,
609
613
webPreferences : {
610
614
nodeIntegration : true ,
@@ -627,7 +631,7 @@ async function showAbout() {
627
631
} ) ;
628
632
629
633
aboutWindow . once ( 'ready-to-show' , ( ) => {
630
- aboutWindow ?. setBackgroundColor ( '#000' ) ;
634
+ aboutWindow ?. setBackgroundColor ( classicDark [ '--background-primary-color' ] ) ;
631
635
} ) ;
632
636
633
637
// looks like sometimes ready-to-show is not fired by electron.
@@ -657,7 +661,7 @@ async function showDebugLogWindow() {
657
661
resizable : true ,
658
662
title : locale . messages . debugLog ,
659
663
autoHideMenuBar : true ,
660
- backgroundColor : '#000' ,
664
+ backgroundColor : classicDark [ '--background-primary-color' ] ,
661
665
shadow : true ,
662
666
show : false ,
663
667
modal : true ,
@@ -682,7 +686,7 @@ async function showDebugLogWindow() {
682
686
} ) ;
683
687
684
688
debugLogWindow . once ( 'ready-to-show' , ( ) => {
685
- debugLogWindow ?. setBackgroundColor ( '#000' ) ;
689
+ debugLogWindow ?. setBackgroundColor ( classicDark [ '--background-primary-color' ] ) ;
686
690
} ) ;
687
691
688
692
// see above: looks like sometimes ready-to-show is not fired by electron
0 commit comments