[DE forms] Bug 54141

This commit is contained in:
Julia Radzhabova 2021-11-29 19:22:34 +03:00
parent fe0756abdb
commit fc7ed0f32c
4 changed files with 21 additions and 4 deletions

View file

@ -436,7 +436,7 @@
.svg-icon { .svg-icon {
background: data-uri('../../../../common/forms/resources/img/icon-menu-sprite.svg') no-repeat; background: data-uri('../../../../common/forms/resources/img/icon-menu-sprite.svg') no-repeat;
background-size: @icon-width*22 @icon-height*2; background-size: @icon-width*24 @icon-height*2;
&.download { &.download {
background-position: -@icon-width 0; background-position: -@icon-width 0;
@ -512,6 +512,14 @@
background-position: -@icon-width*21 0; background-position: -@icon-width*21 0;
background-position: -@icon-width*21 @icon-normal-top; background-position: -@icon-width*21 @icon-normal-top;
} }
&.undo {
background-position: -@icon-width*22 0;
background-position: -@icon-width*22 @icon-normal-top;
}
&.redo {
background-position: -@icon-width*23 0;
background-position: -@icon-width*23 @icon-normal-top;
}
} }
.btn { .btn {

View file

@ -91,6 +91,9 @@ define([
return new Common.UI.Menu({ return new Common.UI.Menu({
cls: 'shifted-right', cls: 'shifted-right',
items: [ items: [
{ caption: this.textUndo, value: 'undo', iconCls: 'mi-icon svg-icon undo' },
{ caption: this.textRedo, value: 'redo', iconCls: 'mi-icon svg-icon redo' },
{ caption: '--' },
{ caption: this.textCut, value: 'cut', iconCls: 'mi-icon svg-icon cut' }, { caption: this.textCut, value: 'cut', iconCls: 'mi-icon svg-icon cut' },
{ caption: this.textCopy, value: 'copy', iconCls: 'mi-icon svg-icon copy' }, { caption: this.textCopy, value: 'copy', iconCls: 'mi-icon svg-icon copy' },
{ caption: this.textPaste, value: 'paste', iconCls: 'mi-icon svg-icon paste' } { caption: this.textPaste, value: 'paste', iconCls: 'mi-icon svg-icon paste' }
@ -114,7 +117,9 @@ define([
textCopy: 'Copy', textCopy: 'Copy',
textPaste: 'Paste', textPaste: 'Paste',
textPrintSel: 'Print Selection', textPrintSel: 'Print Selection',
txtDarkMode: 'Dark mode' txtDarkMode: 'Dark mode',
textUndo: 'Undo',
textRedo: 'Redo'
}, DE.Views.ApplicationView || {})); }, DE.Views.ApplicationView || {}));
}); });

View file

@ -132,5 +132,7 @@
"DE.Views.ApplicationView.txtFullScreen": "Full Screen", "DE.Views.ApplicationView.txtFullScreen": "Full Screen",
"DE.Views.ApplicationView.txtPrint": "Print", "DE.Views.ApplicationView.txtPrint": "Print",
"DE.Views.ApplicationView.txtShare": "Share", "DE.Views.ApplicationView.txtShare": "Share",
"DE.Views.ApplicationView.txtTheme": "Interface theme" "DE.Views.ApplicationView.txtTheme": "Interface theme",
"DE.Views.ApplicationView.textUndo": "Undo",
"DE.Views.ApplicationView.textRedo": "Redo"
} }

View file

@ -131,5 +131,7 @@
"DE.Views.ApplicationView.txtFullScreen": "Во весь экран", "DE.Views.ApplicationView.txtFullScreen": "Во весь экран",
"DE.Views.ApplicationView.txtPrint": "Печать", "DE.Views.ApplicationView.txtPrint": "Печать",
"DE.Views.ApplicationView.txtShare": "Поделиться", "DE.Views.ApplicationView.txtShare": "Поделиться",
"DE.Views.ApplicationView.txtTheme": "Тема интерфейса" "DE.Views.ApplicationView.txtTheme": "Тема интерфейса",
"DE.Views.ApplicationView.textUndo": "Отменить",
"DE.Views.ApplicationView.textRedo": "Повторить"
} }