[common] skip theme's colors updatre for IE
This commit is contained in:
parent
4bcdf7d071
commit
bca6099e18
|
@ -18,22 +18,24 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
var refresh_sdk_colors = function () {
|
var refresh_sdk_colors = function () {
|
||||||
var style = getComputedStyle(document.body);
|
if ( !(Common.Utils.isIE10 || Common.Utils.isIE11) ) {
|
||||||
if ( !!window.DE ) {
|
var style = getComputedStyle(document.body);
|
||||||
var color_background_normal = style.getPropertyValue('--background-normal');
|
if ( !!window.DE ) {
|
||||||
this.api.asc_setSkin({
|
var color_background_normal = style.getPropertyValue('--background-normal');
|
||||||
"RulerOutline": style.getPropertyValue('--border-toolbar'),
|
this.api.asc_setSkin({
|
||||||
"RulerMarkersFillColor": color_background_normal,
|
"RulerOutline": style.getPropertyValue('--border-toolbar'),
|
||||||
"RulerMarkersFillColorOld": color_background_normal,
|
"RulerMarkersFillColor": color_background_normal,
|
||||||
"RulerTableColor1": color_background_normal,
|
"RulerMarkersFillColorOld": color_background_normal,
|
||||||
"RulerLight": style.getPropertyValue("--canvas-ruler-background"),
|
"RulerTableColor1": color_background_normal,
|
||||||
"RulerDark": style.getPropertyValue("--canvas-ruler-margins-background"),
|
"RulerLight": style.getPropertyValue("--canvas-ruler-background"),
|
||||||
"RulerTextColor": style.getPropertyValue("--canvas-ruler-mark"),
|
"RulerDark": style.getPropertyValue("--canvas-ruler-margins-background"),
|
||||||
"RulerTableColor2": style.getPropertyValue("--canvas-ruler-handle-border"),
|
"RulerTextColor": style.getPropertyValue("--canvas-ruler-mark"),
|
||||||
"RulerTableColor2Old": style.getPropertyValue("--canvas-ruler-handle-border-disabled"),
|
"RulerTableColor2": style.getPropertyValue("--canvas-ruler-handle-border"),
|
||||||
"RulerTabsColor": style.getPropertyValue("--canvas-high-contrast"),
|
"RulerTableColor2Old": style.getPropertyValue("--canvas-ruler-handle-border-disabled"),
|
||||||
"RulerTabsColorOld": style.getPropertyValue("--canvas-high-contrast-disabled"),
|
"RulerTabsColor": style.getPropertyValue("--canvas-high-contrast"),
|
||||||
});
|
"RulerTabsColorOld": style.getPropertyValue("--canvas-high-contrast-disabled"),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue