From 07417a29d0e557fce19f3506e17e93e9916ebebd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 9 Jul 2021 13:52:48 +0300 Subject: [PATCH] Color palette refactoring --- apps/common/main/lib/component/ColorButton.js | 2 +- apps/documenteditor/main/app/view/Toolbar.js | 4 ++-- .../documenteditor/main/app/view/WatermarkSettingsDialog.js | 2 +- apps/presentationeditor/main/app/view/Toolbar.js | 2 +- apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js | 4 ++-- apps/spreadsheeteditor/main/app/view/Statusbar.js | 2 +- apps/spreadsheeteditor/main/app/view/Toolbar.js | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/common/main/lib/component/ColorButton.js b/apps/common/main/lib/component/ColorButton.js index 777e24128..aa06ff549 100644 --- a/apps/common/main/lib/component/ColorButton.js +++ b/apps/common/main/lib/component/ColorButton.js @@ -137,7 +137,7 @@ define([ getMenu: function(options) { if (typeof this.menu !== 'object') { options = options || this.options; - var height = options.paletteHeight || 216, + var height = options.paletteHeight || 240, id = Common.UI.getId(), auto = []; if (options.auto) { diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index c8531f71c..3d983ed50 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -268,7 +268,7 @@ define([ template: _.template('<%= caption %>') }, {caption: '--'}, - {template: _.template('
')}, + {template: _.template('
')}, {template: _.template('' + this.textNewColor + '')} ] }) @@ -282,7 +282,7 @@ define([ split: true, menu: new Common.UI.Menu({ items: [ - {template: _.template('
')}, + {template: _.template('
')}, {template: _.template('' + this.textNewColor + '')} ] }) diff --git a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js index cda542b93..969c16b59 100644 --- a/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js +++ b/apps/documenteditor/main/app/view/WatermarkSettingsDialog.js @@ -343,7 +343,7 @@ define(['text!documenteditor/main/app/template/WatermarkSettings.template', template: _.template('<%= caption %>') }, {caption: '--'}, - { template: _.template('
') }, + { template: _.template('
') }, { template: _.template('' + this.textNewColor + '') } ] }) diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 342689c68..f4d32ac28 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -365,7 +365,7 @@ define([ menu: new Common.UI.Menu({ cls: 'shifted-left', items: [ - {template: _.template('
')}, + {template: _.template('
')}, {template: _.template('' + me.textNewColor + '')} ] }) diff --git a/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js b/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js index 077cd3092..54c1480a7 100644 --- a/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js +++ b/apps/spreadsheeteditor/main/app/view/HeaderFooterDialog.js @@ -559,7 +559,7 @@ define([ menu : new Common.UI.Menu({ additionalAlign: this.menuAddAlign, items: [ - { template: _.template('
') }, + { template: _.template('
') }, { template: _.template('' + this.textNewColor + '') } ] }) @@ -578,7 +578,7 @@ define([ menu : new Common.UI.Menu({ additionalAlign: this.menuAddAlign, items: [ - { template: _.template('
') }, + { template: _.template('
') }, { template: _.template('' + this.textNewColor + '') } ] }) diff --git a/apps/spreadsheeteditor/main/app/view/Statusbar.js b/apps/spreadsheeteditor/main/app/view/Statusbar.js index ecb08aaef..8c042e773 100644 --- a/apps/spreadsheeteditor/main/app/view/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/view/Statusbar.js @@ -345,7 +345,7 @@ define([ menuAlign: 'tl-tr', cls: 'color-tab', items: [ - { template: _.template('
') }, + { template: _.template('
') }, { template: _.template('' + me.textNewColor + '') } ] }); diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 3264e52fe..40280cd67 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -497,7 +497,7 @@ define([ template: _.template('<%= caption %>') }, {caption: '--'}, - { template: _.template('
') }, + { template: _.template('
') }, { template: _.template('' + me.textNewColor + '') } ] }) @@ -512,7 +512,7 @@ define([ lock : [_set.selImage, _set.editCell, _set.selSlicer, _set.coAuth, _set.coAuthText, _set.lostConnect], menu : new Common.UI.Menu({ items: [ - { template: _.template('
') }, + { template: _.template('
') }, { template: _.template('' + me.textNewColor + '') } ] }) @@ -1896,7 +1896,7 @@ define([ stopPropagation: true }, {caption: '--'}, - { template: _.template('
'), stopPropagation: true }, + { template: _.template('
'), stopPropagation: true }, { template: _.template('' + this.textNewColor + ''), stopPropagation: true } ] })