From 51dd5071a15c51045d93df3f321c16b5d13e35cb Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 21 Apr 2022 19:36:42 +0300 Subject: [PATCH] [all] refactoring header's icons --- apps/common/main/lib/view/Header.js | 13 ------------- apps/common/main/resources/img/header/icons.svg | 8 ++++++++ apps/documenteditor/main/index.html | 2 +- apps/documenteditor/main/index.html.deploy | 2 +- apps/documenteditor/main/index_loader.html | 2 +- apps/documenteditor/main/index_loader.html.deploy | 2 +- apps/presentationeditor/main/index.html | 2 +- apps/presentationeditor/main/index.html.deploy | 2 +- apps/presentationeditor/main/index_loader.html | 2 +- .../main/index_loader.html.deploy | 2 +- apps/spreadsheeteditor/main/index.html | 2 +- apps/spreadsheeteditor/main/index.html.deploy | 2 +- apps/spreadsheeteditor/main/index_loader.html | 2 +- .../spreadsheeteditor/main/index_loader.html.deploy | 2 +- 14 files changed, 20 insertions(+), 25 deletions(-) create mode 100644 apps/common/main/resources/img/header/icons.svg diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index f4c5c5c9e..3be730768 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -598,19 +598,6 @@ define([ me.btnUndo = createTitleButton('toolbar__icon icon--inverse btn-undo', $html.findById('#slot-btn-dt-undo'), true, undefined, undefined, 'Z'); me.btnRedo = createTitleButton('toolbar__icon icon--inverse btn-redo', $html.findById('#slot-btn-dt-redo'), true, undefined, undefined, 'Y'); - if ( me.btnSave.$icon.is('svg') ) { - me.btnSave.$icon.addClass('icon-save btn-save'); - var _create_use = function (extid, intid) { - var _use = document.createElementNS('http://www.w3.org/2000/svg', 'use'); - _use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', extid); - _use.setAttribute('id', intid); - - return $(_use); - }; - - _create_use('#svg-btn-save-coauth', 'coauth').appendTo(me.btnSave.$icon); - _create_use('#svg-btn-save-sync', 'sync').appendTo(me.btnSave.$icon); - } return $html; } }, diff --git a/apps/common/main/resources/img/header/icons.svg b/apps/common/main/resources/img/header/icons.svg new file mode 100644 index 000000000..3599fad38 --- /dev/null +++ b/apps/common/main/resources/img/header/icons.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/documenteditor/main/index.html b/apps/documenteditor/main/index.html index 42963309b..f20c40c65 100644 --- a/apps/documenteditor/main/index.html +++ b/apps/documenteditor/main/index.html @@ -316,7 +316,7 @@ - + - + diff --git a/apps/documenteditor/main/index_loader.html b/apps/documenteditor/main/index_loader.html index 289055c84..72095a3aa 100644 --- a/apps/documenteditor/main/index_loader.html +++ b/apps/documenteditor/main/index_loader.html @@ -268,7 +268,7 @@
- + - + diff --git a/apps/presentationeditor/main/index.html b/apps/presentationeditor/main/index.html index 0ec95cdfe..ee876897f 100644 --- a/apps/presentationeditor/main/index.html +++ b/apps/presentationeditor/main/index.html @@ -330,7 +330,7 @@ - + - + diff --git a/apps/presentationeditor/main/index_loader.html b/apps/presentationeditor/main/index_loader.html index 2b93f6274..27078a161 100644 --- a/apps/presentationeditor/main/index_loader.html +++ b/apps/presentationeditor/main/index_loader.html @@ -258,7 +258,7 @@
- + - + diff --git a/apps/spreadsheeteditor/main/index.html b/apps/spreadsheeteditor/main/index.html index c68bc5eae..e091cc9f8 100644 --- a/apps/spreadsheeteditor/main/index.html +++ b/apps/spreadsheeteditor/main/index.html @@ -352,7 +352,7 @@ - + diff --git a/apps/spreadsheeteditor/main/index.html.deploy b/apps/spreadsheeteditor/main/index.html.deploy index 85e8d9062..887f0417e 100644 --- a/apps/spreadsheeteditor/main/index.html.deploy +++ b/apps/spreadsheeteditor/main/index.html.deploy @@ -366,7 +366,7 @@ }; - + diff --git a/apps/spreadsheeteditor/main/index_loader.html b/apps/spreadsheeteditor/main/index_loader.html index 3a6770649..f7403d86e 100644 --- a/apps/spreadsheeteditor/main/index_loader.html +++ b/apps/spreadsheeteditor/main/index_loader.html @@ -259,7 +259,7 @@
- + diff --git a/apps/spreadsheeteditor/main/index_loader.html.deploy b/apps/spreadsheeteditor/main/index_loader.html.deploy index 73b82c533..22314a906 100644 --- a/apps/spreadsheeteditor/main/index_loader.html.deploy +++ b/apps/spreadsheeteditor/main/index_loader.html.deploy @@ -317,7 +317,7 @@ }; - +