[desktop] fix bug 63875

This commit is contained in:
maxkadushkin
2023-09-26 11:27:00 +03:00
parent 9e74122523
commit 7e8ccc45cc
2 changed files with 3 additions and 1 deletions

View File

@ -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)) {

View File

@ -510,6 +510,8 @@ define([
}
},
refreshTheme: refresh_theme,
toggleTheme: function () {
this.setTheme( this.isDarkTheme() ? id_default_light_theme : id_default_dark_theme );
}