mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
Fix image logo for new light theme
This commit is contained in:
@ -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) {
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user