Dark theme loading screen

This commit is contained in:
Fedor Indutny
2022-05-11 15:58:14 -07:00
committed by GitHub
parent af2c884c9f
commit b30c7f9c46
7 changed files with 114 additions and 18 deletions

View File

@@ -15,6 +15,7 @@ try {
const { strictAssert } = require('./ts/util/assert');
const { parseIntWithFallback } = require('./ts/util/parseIntWithFallback');
const { UUIDKind } = require('./ts/types/UUID');
const { ThemeType } = require('./ts/types/Util');
// It is important to call this as early as possible
const { SignalContext } = require('./ts/windows/context');
@@ -247,6 +248,12 @@ try {
});
}
if (config.resolvedTheme === 'light') {
window.initialTheme = ThemeType.light;
} else if (config.resolvedTheme === 'dark') {
window.initialTheme = ThemeType.dark;
}
// Settings-related events
window.showSettings = () => ipc.send('show-settings');