mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[PE] Fix change color theme in shape shadow color
This commit is contained in:
@ -157,6 +157,7 @@ define([
|
||||
if (this.api) {
|
||||
this.api.asc_setInterfaceDrawImagePlaceShape('shape-texture-img');
|
||||
this.api.asc_registerCallback('asc_onInitStandartTextures', _.bind(this.onInitStandartTextures, this));
|
||||
this.api.asc_registerCallback('asc_onSendThemeColors', _.bind(this.onSendThemeColors, this));
|
||||
}
|
||||
Common.NotificationCenter.on('storage:image-insert', _.bind(this.insertImageFromStorage, this));
|
||||
return this;
|
||||
@ -1938,6 +1939,13 @@ define([
|
||||
}
|
||||
},
|
||||
|
||||
onSendThemeColors: function() {
|
||||
if (this.mnuShadowShapeColorPicker) {
|
||||
var effectcolors = Common.Utils.ThemeColor.getEffectColors();
|
||||
this.mnuShadowShapeColorPicker.updateColors(effectcolors, Common.Utils.ThemeColor.getStandartColors());
|
||||
}
|
||||
},
|
||||
|
||||
onSelectTexture: function(picker, view, record){
|
||||
this._fromTextureCmb = true;
|
||||
this.cmbFillType.setValue(this._arrFillType[1].value);
|
||||
|
||||
Reference in New Issue
Block a user