[themes] debug for support of external themes

This commit is contained in:
Maxim Kadushkin 2022-06-03 11:39:27 +03:00
parent 704a251941
commit c97440e676
2 changed files with 6 additions and 2 deletions

View file

@ -39,7 +39,8 @@ define([
} }
if ( !!window.currentLoaderTheme ) { if ( !!window.currentLoaderTheme ) {
themes_map[currentLoaderTheme.id] = {}; if ( !themes_map[currentLoaderTheme.id] )
themes_map[currentLoaderTheme.id] = currentLoaderTheme;
window.currentLoaderTheme = undefined; window.currentLoaderTheme = undefined;
} }
@ -208,6 +209,8 @@ define([
themes_map[obj.id] = {text: theme_label, type: obj.type}; themes_map[obj.id] = {text: theme_label, type: obj.type};
write_theme_css( create_colors_css(obj.id, obj.colors) ); write_theme_css( create_colors_css(obj.id, obj.colors) );
} }
Common.NotificationCenter.trigger('uitheme:countchanged');
} }
var get_themes_config = function (url) { var get_themes_config = function (url) {
@ -446,6 +449,7 @@ define([
var theme_obj = { var theme_obj = {
id: id, id: id,
type: obj.type, type: obj.type,
text: themes_map[id].text,
}; };
if ( themes_map[id].source != 'static' ) { if ( themes_map[id].source != 'static' ) {

View file

@ -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: 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')"; 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')"; content: ~"url('@{common-image-const-path}/about/logo-white_s.svg')";
} }