diff --git a/src/js/game/theme.js b/src/js/game/theme.js index c4e15e5a..2a451b9f 100644 --- a/src/js/game/theme.js +++ b/src/js/game/theme.js @@ -6,10 +6,16 @@ export const THEMES = { export let THEME = THEMES.light; let currentThemePreference = "light"; -THEMES.system = THEMES.light; -ipcRenderer.on("system-theme-updated", detectSystemTheme); +if (G_IS_STANDALONE) { + THEMES.system = THEMES.light; + ipcRenderer.on("system-theme-updated", detectSystemTheme); +} export function detectSystemTheme() { + if (!G_IS_STANDALONE) { + return; + } + return ipcRenderer .invoke("get-system-theme") .then(theme => (THEMES.system = THEMES[theme])) diff --git a/src/js/profile/application_settings.js b/src/js/profile/application_settings.js index f048a3f9..6aeb4e4c 100644 --- a/src/js/profile/application_settings.js +++ b/src/js/profile/application_settings.js @@ -291,7 +291,7 @@ class SettingsStorage { this.soundVolume = 1.0; this.musicVolume = 1.0; - this.theme = "system"; + this.theme = G_IS_STANDALONE ? "system" : "light"; this.refreshRate = "60"; this.scrollWheelSensitivity = "regular"; this.movementSpeed = "regular";