[desktop] fix for system theme support
This commit is contained in:
parent
e9c2445afe
commit
8428e51e6b
|
@ -292,7 +292,7 @@ define([
|
||||||
'modal:close': _onModalDialog.bind(this, 'close'),
|
'modal:close': _onModalDialog.bind(this, 'close'),
|
||||||
'uitheme:changed' : function (name) {
|
'uitheme:changed' : function (name) {
|
||||||
if (Common.localStorage.getBool('ui-theme-use-system', false)) {
|
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 {
|
} else {
|
||||||
var theme = Common.UI.Themes.get(name);
|
var theme = Common.UI.Themes.get(name);
|
||||||
if ( theme )
|
if ( theme )
|
||||||
|
|
Loading…
Reference in a new issue