From b50d78c212c699a97fc22b7ea54e3417e2013503 Mon Sep 17 00:00:00 2001
From: Alexei Koshelev <aleksei.koshelev@onlyoffice.com>
Date: Tue, 11 Oct 2022 16:13:17 +0300
Subject: [PATCH] [SSE PE DE] Change icons for textbox

---
 apps/documenteditor/main/app/view/Toolbar.js     | 10 +++++-----
 apps/presentationeditor/main/app/view/Toolbar.js | 10 +++++-----
 apps/spreadsheeteditor/main/app/view/Toolbar.js  | 10 +++++-----
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js
index 0d3fdbcf8..576cde780 100644
--- a/apps/documenteditor/main/app/view/Toolbar.js
+++ b/apps/documenteditor/main/app/view/Toolbar.js
@@ -677,7 +677,7 @@ define([
                     this.btnInsertText = new Common.UI.Button({
                         id: 'tlbtn-inserttext',
                         cls: 'btn-toolbar x-huge icon-top',
-                        iconCls: 'toolbar__icon btn-review-prev',
+                        iconCls: 'toolbar__icon btn-text',
                         lock: [_set.paragraphLock, _set.headerLock, _set.inEquation, _set.controlPlain, _set.contentLock, _set.inFootnote, _set.previewReviewMode, _set.viewFormMode,
                             _set.lostConnect, _set.disableOnStart],
                         caption: me.capBtnInsTextbox,
@@ -2229,19 +2229,19 @@ define([
                             caption: this.tipInsertHorizontalText,
                             checkable: true,
                             checkmark: false,
-                            iconCls     : 'menu__icon text-orient-hor',
+                            iconCls     : 'menu__icon btn-text',
                             toggleGroup: 'textbox',
                             value: 'textRect',
-                            iconClsForMainBtn: 'btn-review-prev'
+                            iconClsForMainBtn: 'btn-text'
                         },
                         {
                             caption: this.tipInsertVerticalText,
                             checkable: true,
                             checkmark: false,
-                            iconCls     : 'menu__icon text-orient-rup',
+                            iconCls     : 'menu__icon btn-text-vertical',
                             toggleGroup: 'textbox',
                             value: 'textRectVertical',
-                            iconClsForMainBtn: 'btn-review-next'
+                            iconClsForMainBtn: 'btn-text-vertical'
                         },
                     ]
                 }));
diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js
index 57e98f7e3..30c16a037 100644
--- a/apps/presentationeditor/main/app/view/Toolbar.js
+++ b/apps/presentationeditor/main/app/view/Toolbar.js
@@ -1282,7 +1282,7 @@ define([
 
                 this.btnsInsertImage = Common.Utils.injectButtons($host.find('.slot-insertimg'), 'tlbtn-insertimage-', 'toolbar__icon btn-insertimage', this.capInsertImage,
                     [Common.enumLock.slideDeleted, Common.enumLock.lostConnect, Common.enumLock.noSlides, Common.enumLock.disableOnStart], false, true, undefined, '1', 'bottom', 'small');
-                this.btnsInsertText = Common.Utils.injectButtons($host.find('.slot-instext'), 'tlbtn-inserttext-', 'toolbar__icon btn-datetime', this.capInsertText,
+                this.btnsInsertText = Common.Utils.injectButtons($host.find('.slot-instext'), 'tlbtn-inserttext-', 'toolbar__icon btn-text', this.capInsertText,
                     [Common.enumLock.slideDeleted, Common.enumLock.lostConnect, Common.enumLock.noSlides, Common.enumLock.disableOnStart], true, false, true, '1', 'bottom', 'small');
                 this.btnsInsertShape = Common.Utils.injectButtons($host.find('.slot-insertshape'), 'tlbtn-insertshape-', 'toolbar__icon btn-insertshape', this.capInsertShape,
                     [Common.enumLock.slideDeleted, Common.enumLock.lostConnect, Common.enumLock.noSlides, Common.enumLock.disableOnStart], false, true, true, '1', 'bottom', 'small');
@@ -1327,19 +1327,19 @@ define([
                                 caption: me.tipInsertHorizontalText,
                                 checkable: true,
                                 checkmark: false,
-                                iconCls     : 'menu__icon text-orient-hor',
+                                iconCls     : 'menu__icon btn-text',
                                 toggleGroup: 'textbox',
                                 value: 'textRect',
-                                iconClsForMainBtn: 'btn-datetime'
+                                iconClsForMainBtn: 'btn-text'
                             },
                             {
                                 caption: me.tipInsertVerticalText,
                                 checkable: true,
                                 checkmark: false,
-                                iconCls     : 'menu__icon text-orient-rup',
+                                iconCls     : 'menu__icon btn-text-vertical',
                                 toggleGroup: 'textbox',
                                 value: 'textRectVertical',
-                                iconClsForMainBtn: 'btn-pagenum'
+                                iconClsForMainBtn: 'btn-text-vertical'
                             },
                         ]
                     }));
diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js
index e795dba0e..c01ea63df 100644
--- a/apps/spreadsheeteditor/main/app/view/Toolbar.js
+++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js
@@ -1225,7 +1225,7 @@ define([
                 me.btnInsertText = new Common.UI.Button({
                     id          : 'tlbtn-inserttext',
                     cls         : 'btn-toolbar x-huge icon-top',
-                    iconCls     : 'toolbar__icon btn-subtotals',
+                    iconCls     : 'toolbar__icon btn-text',
                     caption     : me.capInsertText,
                     lock        : [_set.editCell, _set.lostConnect, _set.coAuth, _set['Objects']],
                     enableToggle: true,
@@ -2590,19 +2590,19 @@ define([
                             caption: this.tipInsertHorizontalText,
                             checkable: true,
                             checkmark: false,
-                            iconCls     : 'menu__icon text-orient-hor',
+                            iconCls     : 'menu__icon btn-text',
                             toggleGroup: 'textbox',
                             value: 'textRect',
-                            iconClsForMainBtn: 'btn-subtotals'
+                            iconClsForMainBtn: 'btn-text'
                         },
                         {
                             caption: this.tipInsertVerticalText,
                             checkable: true,
                             checkmark: false,
-                            iconCls     : 'menu__icon text-orient-rup',
+                            iconCls     : 'menu__icon btn-text-vertical',
                             toggleGroup: 'textbox',
                             value: 'textRectVertical',
-                            iconClsForMainBtn: 'btn-pivot-layout'
+                            iconClsForMainBtn: 'btn-text-vertical'
                         },
                     ]
                 }));