[desktop] correct theme's config
This commit is contained in:
parent
db6afad24a
commit
ad9a747fc9
|
@ -52,14 +52,18 @@ var checkLocalStorage = (function () {
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
if ( window.desktop && window.desktop.theme ) {
|
if ( window.desktop && !!window.RendererProcessVariable ) {
|
||||||
if ( window.desktop.theme.id ) {
|
var theme = window.RendererProcessVariable.theme
|
||||||
// params.uitheme = undefined;
|
|
||||||
localStorage.setItem("ui-theme-id", window.desktop.theme.id);
|
if ( theme ) {
|
||||||
} else
|
if ( theme.id ) {
|
||||||
if ( window.desktop.theme.type ) {
|
// params.uitheme = undefined;
|
||||||
if ( window.desktop.theme.type == 'dark' ) params.uitheme == 'default-dark'; else
|
localStorage.setItem("ui-theme-id", theme.id);
|
||||||
if ( window.desktop.theme.type == 'light' ) params.uitheme == 'default-light';
|
} else
|
||||||
|
if ( !!theme.type ) {
|
||||||
|
if ( theme.type == 'dark' ) params.uitheme = 'default-dark'; else
|
||||||
|
if ( theme.type == 'light' ) params.uitheme = 'default-light';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue