From d6ab0db28da66f141bb85fb49aea4b9e30dfb11c Mon Sep 17 00:00:00 2001 From: OVSharova Date: Tue, 5 Sep 2023 19:09:01 +0300 Subject: [PATCH] move updateThemeColors --- apps/presentationeditor/main/app/controller/Main.js | 3 +++ apps/presentationeditor/main/app/controller/Toolbar.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 8926ad2d37..8eadc416fa 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -2041,6 +2041,9 @@ define([ setTimeout(function(){ me.getApplication().getController('Toolbar').updateThemeColors(); }, 50); + setTimeout(function(){ + me.getApplication().getController('Animation').updateThemeColors(); + }, 50); }, onSendThemeColors: function(colors, standart_colors) { diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 519cf436b1..705d1dc90c 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -2545,7 +2545,6 @@ define([ this.onApiTextColor(this._state.clrtext_asccolor); } this._state.clrtext_asccolor = undefined; - this.getApplication().getController('Animation').updateThemeColors(); }, _onInitEditorThemes: function(editorThemes/*array */, documentThemes) {