[themes] debug for support of external themes
This commit is contained in:
parent
704a251941
commit
c97440e676
|
@ -39,7 +39,8 @@ define([
|
|||
}
|
||||
|
||||
if ( !!window.currentLoaderTheme ) {
|
||||
themes_map[currentLoaderTheme.id] = {};
|
||||
if ( !themes_map[currentLoaderTheme.id] )
|
||||
themes_map[currentLoaderTheme.id] = currentLoaderTheme;
|
||||
window.currentLoaderTheme = undefined;
|
||||
}
|
||||
|
||||
|
@ -208,6 +209,8 @@ define([
|
|||
themes_map[obj.id] = {text: theme_label, type: obj.type};
|
||||
write_theme_css( create_colors_css(obj.id, obj.colors) );
|
||||
}
|
||||
|
||||
Common.NotificationCenter.trigger('uitheme:countchanged');
|
||||
}
|
||||
|
||||
var get_themes_config = function (url) {
|
||||
|
@ -446,6 +449,7 @@ define([
|
|||
var theme_obj = {
|
||||
id: id,
|
||||
type: obj.type,
|
||||
text: themes_map[id].text,
|
||||
};
|
||||
|
||||
if ( themes_map[id].source != 'static' ) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//content: if(@icon-src-base64, data-uri(%("%s",'@{common-image-path}/about/logo.png')), ~"url('@{common-image-const-path}/about/logo.png')");
|
||||
content: ~"url('@{common-image-const-path}/about/logo_s.svg')";
|
||||
|
||||
.theme-dark & {
|
||||
.theme-type-dark & {
|
||||
content: ~"url('@{common-image-const-path}/about/logo-white_s.svg')";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue