From b662f8bdc723f48f0ddebab5a37107b2ebadb83c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 25 Jul 2022 21:38:10 +0300 Subject: [PATCH] [PE][SSE] Fix Bug 58271 --- .../main/app/view/ShapeSettingsAdvanced.js | 16 ++++++++-------- .../main/resources/less/advanced-settings.less | 9 +++++---- .../main/app/view/ShapeSettingsAdvanced.js | 16 ++++++++-------- .../main/resources/less/advanced-settings.less | 9 +++++---- 4 files changed, 26 insertions(+), 24 deletions(-) diff --git a/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js index 51d4291f8..606cfd05d 100644 --- a/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js @@ -406,7 +406,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-begin-style'), template: _.template([ '' @@ -424,7 +424,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-menu-begin-style'), parentMenu: this.btnBeginStyleMenu, store: new Common.UI.DataViewStore(_arrStyles), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuBeginStylePicker.on('item:click', _.bind(this.onSelectBeginStyle, this)); this._selectStyleItem(this.btnBeginStyle, null); @@ -433,7 +433,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-begin-size'), template: _.template([ '' @@ -451,7 +451,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-menu-begin-size'), parentMenu: this.btnBeginSizeMenu, store: new Common.UI.DataViewStore(_arrSize), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuBeginSizePicker.on('item:click', _.bind(this.onSelectBeginSize, this)); this._selectStyleItem(this.btnBeginSize, null); @@ -466,7 +466,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-end-style'), template: _.template([ '' @@ -484,7 +484,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-menu-end-style'), parentMenu: this.btnEndStyleMenu, store: new Common.UI.DataViewStore(_arrStyles), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuEndStylePicker.on('item:click', _.bind(this.onSelectEndStyle, this)); this._selectStyleItem(this.btnEndStyle, null); @@ -493,7 +493,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-end-size'), template: _.template([ '' @@ -511,7 +511,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-menu-end-size'), parentMenu: this.btnEndSizeMenu, store: new Common.UI.DataViewStore(_arrSize), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuEndSizePicker.on('item:click', _.bind(this.onSelectEndSize, this)); this._selectStyleItem(this.btnEndSize, null); diff --git a/apps/presentationeditor/main/resources/less/advanced-settings.less b/apps/presentationeditor/main/resources/less/advanced-settings.less index b7be1be09..5bc3951fd 100644 --- a/apps/presentationeditor/main/resources/less/advanced-settings.less +++ b/apps/presentationeditor/main/resources/less/advanced-settings.less @@ -4,11 +4,9 @@ background-color: white; &.image { - .background-ximage('@{common-image-path}/right-panels/Begin-EndStyle.png', '@{common-image-path}/right-panels/Begin-EndStyle@2x.png', 480px); - background-repeat: no-repeat; background-position: 10px 0; background-attachment: scroll; - background-color: white; + background-color: @background-normal; } } @@ -22,8 +20,11 @@ } } +.img-arrows { + .background-ximage-v2('right-panels/Begin-EndStyle.png', 480px, @commonimage: true); +} + .item-arrow { - .background-ximage('@{common-image-path}/right-panels/Begin-EndStyle.png', '@{common-image-path}/right-panels/Begin-EndStyle@2x.png', 480px); width:44px; height:20px; } diff --git a/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js index 510be9f0b..c39790d4e 100644 --- a/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js @@ -376,7 +376,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-begin-style'), template: _.template([ '' @@ -394,7 +394,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-menu-begin-style'), parentMenu: this.btnBeginStyleMenu, store: new Common.UI.DataViewStore(_arrStyles), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuBeginStylePicker.on('item:click', _.bind(this.onSelectBeginStyle, this)); this._selectStyleItem(this.btnBeginStyle, null); @@ -403,7 +403,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-begin-size'), template: _.template([ '' @@ -421,7 +421,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-menu-begin-size'), parentMenu: this.btnBeginSizeMenu, store: new Common.UI.DataViewStore(_arrSize), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuBeginSizePicker.on('item:click', _.bind(this.onSelectBeginSize, this)); this._selectStyleItem(this.btnBeginSize, null); @@ -436,7 +436,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-end-style'), template: _.template([ '' @@ -454,7 +454,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-menu-end-style'), parentMenu: this.btnEndStyleMenu, store: new Common.UI.DataViewStore(_arrStyles), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuEndStylePicker.on('item:click', _.bind(this.onSelectEndStyle, this)); this._selectStyleItem(this.btnEndStyle, null); @@ -463,7 +463,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-end-size'), template: _.template([ '' @@ -481,7 +481,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-menu-end-size'), parentMenu: this.btnEndSizeMenu, store: new Common.UI.DataViewStore(_arrSize), - itemTemplate: _.template('
') + itemTemplate: _.template('
') }); this.mnuEndSizePicker.on('item:click', _.bind(this.onSelectEndSize, this)); this._selectStyleItem(this.btnEndSize, null); diff --git a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less index f8e64e3d2..7fa069051 100644 --- a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less +++ b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less @@ -4,11 +4,9 @@ background-color: white; &.image { - .background-ximage('@{common-image-path}/right-panels/Begin-EndStyle.png', '@{common-image-path}/right-panels/Begin-EndStyle@2x.png', 480px); - background-repeat: no-repeat; background-position: 10px 0; background-attachment: scroll; - background-color: white; + background-color: @background-normal; } } @@ -22,8 +20,11 @@ } } +.img-arrows { + .background-ximage-v2('right-panels/Begin-EndStyle.png', 480px, @commonimage: true); +} + .item-arrow { - .background-ximage('@{common-image-path}/right-panels/Begin-EndStyle.png', '@{common-image-path}/right-panels/Begin-EndStyle@2x.png', 480px); width:44px; height:20px; }