diff --git a/apps/common/main/resources/less/toolbar.less b/apps/common/main/resources/less/toolbar.less index 61a9f3eab..7fb35ebc9 100644 --- a/apps/common/main/resources/less/toolbar.less +++ b/apps/common/main/resources/less/toolbar.less @@ -668,3 +668,23 @@ width: 20px; height: 21px; } + +.menu-iconsets { + margin: 5px 5px 0 10px; + + .group-items-container > div { + margin-right: 8px !important; + &:not(:hover), + &:not(.selected) { + .box-shadow(none); + } + } + .item-iconset { + img { + margin: 2px; + } + + width: 100px; + height: 20px; + } +} \ No newline at end of file diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 758744a96..610701660 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -1665,9 +1665,57 @@ define([ ]; picker.setStore(new Common.UI.DataViewStore(arr)); - this.toolbar.mnuIconSets.menu.addItem(new Common.UI.MenuItem({ - template: _.template('') + menuItem = this.toolbar.mnuIconSets; + menuItem.menu.addItem(new Common.UI.MenuItem({ + template: _.template('') })); + arr = []; + var indexes = [Asc.EIconSetType.Arrows3, Asc.EIconSetType.Arrows3Gray, Asc.EIconSetType.Triangles3, Asc.EIconSetType.Arrows4Gray, Asc.EIconSetType.Arrows4, Asc.EIconSetType.Arrows5Gray, Asc.EIconSetType.Arrows5]; + for (var i=0; i' + + '<% _.each(data.icons, function(icon) { %>' + + '' + + '<% }) %>' + + '') + }); + picker.on('item:click', function(picker, item, record, e) { + if (me.api) { + if (record) { + me.api.asc_setCF([], [], [Asc.c_oAscCFRuleTypeSettings.icons, record.get('data').index]); + } + if (e.type !== 'click') + me.toolbar.btnCondFormat.menu.hide(); + Common.NotificationCenter.trigger('edit:complete', me.toolbar, me.toolbar.btnCondFormat); + } + }); }, onCondFormatMenu: function(menu, item) { @@ -4235,7 +4283,11 @@ define([ textInsert: 'Insert', txtInsertCells: 'Insert Cells', txtDeleteCells: 'Delete Cells', - errorComboSeries: 'To create a combination chart, select at least two series of data.' + errorComboSeries: 'To create a combination chart, select at least two series of data.', + textDirectional: 'Directional', + textShapes: 'Shapes', + textIndicator: 'Indicators', + textRating: 'Ratings' }, SSE.Controllers.Toolbar || {})); }); \ No newline at end of file