Fix image logo for new light theme

This commit is contained in:
Julia.Radzhabova
2025-06-23 19:21:44 +03:00
parent 13b5c5fb9b
commit aaa6a00c1e
2 changed files with 12 additions and 0 deletions

View File

@ -1104,6 +1104,12 @@ define([
setBranding: function (value, config) {
this.branding = value;
var element = $('#header-logo');
if (value && value.logo && (value.logo.image || value.logo.imageDark || value.logo.imageLight)) { // TODO: remove
let str = "static/images/logo/docseditor.svg";
if (value.logo.image && value.logo.image.indexOf(str)>-1 || value.logo.imageDark && value.logo.imageDark.indexOf(str)>-1 || value.logo.imageLight && value.logo.imageLight.indexOf(str)>-1)
value.logo.image = value.logo.imageDark = value.logo.imageLight = undefined;
}
var logo = this.getSuitableLogo(value, config);
element.toggleClass('logo-light', logo.isLight);
if ( value && value.logo && element) {

View File

@ -890,6 +890,12 @@ define([
return;
}
if (value.logo.image || value.logo.imageDark || value.logo.imageLight) { // TODO: remove
let str = "static/images/logo/docseditor.svg";
if (value.logo.image && value.logo.image.indexOf(str)>-1 || value.logo.imageDark && value.logo.imageDark.indexOf(str)>-1 || value.logo.imageLight && value.logo.imageLight.indexOf(str)>-1)
value.logo.image = value.logo.imageDark = value.logo.imageLight = undefined;
}
if (value.logo.image || value.logo.imageDark || value.logo.imageLight) {
_logoImage = Common.UI.Themes.isDarkTheme() ? (value.logo.imageDark || value.logo.image || value.logo.imageLight) :
(value.logo.imageLight || value.logo.image || value.logo.imageDark);