Skip to content

Commit

Permalink
[PE] Fix change color theme in shape shadow color
Browse files Browse the repository at this point in the history
  • Loading branch information
Basher0303 committed Mar 29, 2024
1 parent 2565307 commit 5c6447b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/presentationeditor/main/app/view/ShapeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5c6447b

Please sign in to comment.