[desktop] fix for system theme support

This commit is contained in:
Maxim Kadushkin 2022-08-10 00:55:36 +03:00
parent e9c2445afe
commit 8428e51e6b

View file

@ -292,7 +292,7 @@ define([
'modal:close': _onModalDialog.bind(this, 'close'),
'uitheme:changed' : function (name) {
if (Common.localStorage.getBool('ui-theme-use-system', false)) {
native.execCommand("system:changed", JSON.stringify({'colorscheme':name}));
native.execCommand("uitheme:changed", JSON.stringify({name:'theme-system'}));
} else {
var theme = Common.UI.Themes.get(name);
if ( theme )