Skip to content

Commit f9c9ec4

Browse files
committed
fix: replace black grounds with classic dark background by default
1 parent bbc5ab4 commit f9c9ec4

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

stylesheets/_global.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
html {
66
height: 100%;
77
// Default theme is Classic Dark
8-
background-color: black;
8+
background-color: #1b1b1b;
99
}
1010

1111
body {
@@ -86,7 +86,7 @@ a {
8686
align-items: center;
8787
user-select: none;
8888
// Default theme is Classic Dark so we force this for the password prompt
89-
background-color: black;
89+
background-color: #1b1b1b;
9090

9191
.content {
9292
margin-inline-start: auto;

ts/mains/main_node.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ if (windowFromUserConfig) {
157157
import { load as loadLocale, LocaleMessagesWithNameType } from '../node/locale';
158158
import { setLastestRelease } from '../node/latest_desktop_release';
159159
import { getAppRootPath } from '../node/getRootPath';
160+
import { classicDark } from '../themes';
160161

161162
// Both of these will be set after app fires the 'ready' event
162163
let logger: Logger | null = null;
@@ -282,7 +283,8 @@ async function createWindow() {
282283
minWidth,
283284
minHeight,
284285
fullscreen: false as boolean | undefined,
285-
backgroundColor: '#000',
286+
// Default theme is Classic Dark
287+
backgroundColor: classicDark['--background-primary-color'],
286288
webPreferences: {
287289
nodeIntegration: true,
288290
enableRemoteModule: true,
@@ -530,6 +532,8 @@ async function showPasswordWindow() {
530532
minWidth,
531533
minHeight,
532534
autoHideMenuBar: false,
535+
// Default theme is Classic Dark
536+
backgroundColor: classicDark['--background-primary-color'],
533537
webPreferences: {
534538
nodeIntegration: true,
535539
enableRemoteModule: true,
@@ -604,7 +608,7 @@ async function showAbout() {
604608
resizable: true,
605609
title: locale.messages.about,
606610
autoHideMenuBar: true,
607-
backgroundColor: '#000',
611+
backgroundColor: classicDark['--background-primary-color'],
608612
show: false,
609613
webPreferences: {
610614
nodeIntegration: true,
@@ -627,7 +631,7 @@ async function showAbout() {
627631
});
628632

629633
aboutWindow.once('ready-to-show', () => {
630-
aboutWindow?.setBackgroundColor('#000');
634+
aboutWindow?.setBackgroundColor(classicDark['--background-primary-color']);
631635
});
632636

633637
// looks like sometimes ready-to-show is not fired by electron.
@@ -657,7 +661,7 @@ async function showDebugLogWindow() {
657661
resizable: true,
658662
title: locale.messages.debugLog,
659663
autoHideMenuBar: true,
660-
backgroundColor: '#000',
664+
backgroundColor: classicDark['--background-primary-color'],
661665
shadow: true,
662666
show: false,
663667
modal: true,
@@ -682,7 +686,7 @@ async function showDebugLogWindow() {
682686
});
683687

684688
debugLogWindow.once('ready-to-show', () => {
685-
debugLogWindow?.setBackgroundColor('#000');
689+
debugLogWindow?.setBackgroundColor(classicDark['--background-primary-color']);
686690
});
687691

688692
// see above: looks like sometimes ready-to-show is not fired by electron

0 commit comments

Comments
 (0)