[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 style = getComputedStyle(document.body);
|
||||
if ( !!window.DE ) {
|
||||
var color_background_normal = style.getPropertyValue('--background-normal');
|
||||
this.api.asc_setSkin({
|
||||
"RulerOutline": style.getPropertyValue('--border-toolbar'),
|
||||
"RulerMarkersFillColor": color_background_normal,
|
||||
"RulerMarkersFillColorOld": color_background_normal,
|
||||
"RulerTableColor1": color_background_normal,
|
||||
"RulerLight": style.getPropertyValue("--canvas-ruler-background"),
|
||||
"RulerDark": style.getPropertyValue("--canvas-ruler-margins-background"),
|
||||
"RulerTextColor": style.getPropertyValue("--canvas-ruler-mark"),
|
||||
"RulerTableColor2": style.getPropertyValue("--canvas-ruler-handle-border"),
|
||||
"RulerTableColor2Old": style.getPropertyValue("--canvas-ruler-handle-border-disabled"),
|
||||
"RulerTabsColor": style.getPropertyValue("--canvas-high-contrast"),
|
||||
"RulerTabsColorOld": style.getPropertyValue("--canvas-high-contrast-disabled"),
|
||||
});
|
||||
if ( !(Common.Utils.isIE10 || Common.Utils.isIE11) ) {
|
||||
var style = getComputedStyle(document.body);
|
||||
if ( !!window.DE ) {
|
||||
var color_background_normal = style.getPropertyValue('--background-normal');
|
||||
this.api.asc_setSkin({
|
||||
"RulerOutline": style.getPropertyValue('--border-toolbar'),
|
||||
"RulerMarkersFillColor": color_background_normal,
|
||||
"RulerMarkersFillColorOld": color_background_normal,
|
||||
"RulerTableColor1": color_background_normal,
|
||||
"RulerLight": style.getPropertyValue("--canvas-ruler-background"),
|
||||
"RulerDark": style.getPropertyValue("--canvas-ruler-margins-background"),
|
||||
"RulerTextColor": style.getPropertyValue("--canvas-ruler-mark"),
|
||||
"RulerTableColor2": style.getPropertyValue("--canvas-ruler-handle-border"),
|
||||
"RulerTableColor2Old": style.getPropertyValue("--canvas-ruler-handle-border-disabled"),
|
||||
"RulerTabsColor": style.getPropertyValue("--canvas-high-contrast"),
|
||||
"RulerTabsColorOld": style.getPropertyValue("--canvas-high-contrast-disabled"),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue