diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 20238763a6..706bdf1835 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -146,7 +146,7 @@ define([ window.RendererProcessVariable.theme.system = opts.theme.system; if ( Common.UI.Themes.currentThemeId() == 'theme-system' ) - Common.UI.Themes.setTheme('theme-system'); + Common.UI.Themes.refreshTheme(true); } } else if (/element:show/.test(cmd)) { diff --git a/apps/common/main/lib/controller/Themes.js b/apps/common/main/lib/controller/Themes.js index 25785e45f9..e78289fe33 100644 --- a/apps/common/main/lib/controller/Themes.js +++ b/apps/common/main/lib/controller/Themes.js @@ -510,6 +510,8 @@ define([ } }, + refreshTheme: refresh_theme, + toggleTheme: function () { this.setTheme( this.isDarkTheme() ? id_default_light_theme : id_default_dark_theme ); }