Dark theme loading screen
This commit is contained in:
@@ -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');
|
||||
|
Reference in New Issue
Block a user