[desktop] send theme type to native app

This commit is contained in:
Maxim Kadushkin 2021-06-16 20:11:55 +03:00
parent 0991b8dbdb
commit f9a705efe0

View file

@ -246,7 +246,9 @@ define([
'modal:show': _onModalDialog.bind(this, 'open'),
'modal:close': _onModalDialog.bind(this, 'close')
, 'uitheme:changed' : function (name) {
native.execCommand("uitheme:changed", name);
var theme = Common.UI.Themes.get(name);
if ( theme )
native.execCommand("uitheme:changed", JSON.stringify({name:name, type:theme.type}));
}
});
}