Merge branch 'feature/modern-koch-design-tbar' of git.onlyoffice.com:ONLYOFFICE/web-apps into feature/modern-koch-design-tbar
@ -361,9 +361,9 @@ define([
|
||||
options: {
|
||||
resizable : true,
|
||||
minwidth : 448,
|
||||
minheight : 434,
|
||||
minheight : 420,
|
||||
width: 448,
|
||||
height: 434,
|
||||
height: 420,
|
||||
cls: 'modal-dlg invisible-borders',
|
||||
buttons: ['ok', 'cancel']
|
||||
},
|
||||
@ -372,9 +372,9 @@ define([
|
||||
var config = {
|
||||
resizable : true,
|
||||
minwidth : 448,
|
||||
minheight : 434,
|
||||
minheight : 420,
|
||||
width: 448,
|
||||
height: 434,
|
||||
height: 420,
|
||||
cls: 'modal-dlg invisible-borders',
|
||||
buttons: ['ok', 'cancel']
|
||||
};
|
||||
@ -393,19 +393,19 @@ define([
|
||||
this.options = _.extend(config, {
|
||||
title: this.textTitle,
|
||||
width : size[0] || 448,
|
||||
height : size[1] || 434
|
||||
height : size[1] || 420
|
||||
}, options || {});
|
||||
|
||||
this.api = this.options.api;
|
||||
this.type = this.options.type || 0; // 0 - close on OK, single adding symbol
|
||||
this.special = this.options.special || false; // true - show special tab
|
||||
this.showShortcutKey = this.options.showShortcutKey || false;
|
||||
!this.special && (this.options.height -= 38);
|
||||
!this.special && (this.options.minheight -= 38);
|
||||
this.special && (this.options.height += 38);
|
||||
this.special && (this.options.minheight += 38);
|
||||
|
||||
this.template = [
|
||||
'<div class="box">',
|
||||
'<div style="margin-bottom: 16px;" class="'+ (this.special ? '' : 'hidden') +'">',
|
||||
'<div id="symbol-table-switcher" style="margin-bottom: 16px;" class="'+ (this.special ? '' : 'hidden') +'">',
|
||||
'<button type="button" class="btn btn-text-default auto" id="symbol-table-symbols">', this.textSymbols,'</button>',
|
||||
'<button type="button" class="btn btn-text-default auto" id="symbol-table-special">', this.textSpecial,'</button>',
|
||||
'</div>',
|
||||
@ -424,8 +424,8 @@ define([
|
||||
'</table>',
|
||||
'<table cols="1" style="width: 100%;">',
|
||||
'<tr>',
|
||||
'<td style="padding-bottom: 16px;">',
|
||||
'<div id="symbol-table-scrollable-div" style="position: relative;height:'+ (this.options.height-304 + 38*(this.special ? 0 : 1)) + 'px;">',
|
||||
'<td>',
|
||||
'<div id="symbol-table-scrollable-div" style="position: relative;height:'+ (this.options.height-304 - 38*(this.special ? 1 : 0)) + 'px;">',
|
||||
'<div style="width: 100%;">',
|
||||
'<div id="id-preview">',
|
||||
'<div>',
|
||||
@ -436,8 +436,10 @@ define([
|
||||
'</div>',
|
||||
'</td>',
|
||||
'</tr>',
|
||||
'</table>',
|
||||
'<table cols="1" style="width: 100%;">',
|
||||
'<tr>',
|
||||
'<td style="padding-bottom: 16px;">',
|
||||
'<td style="padding-bottom: 16px;padding-top: 16px;">',
|
||||
'<label class="input-label">' + this.textRecent + '</label>',
|
||||
'<div id="symbol-table-recent" tabindex="0" oo_editor_input="true" style="width: 100%;"></div>',
|
||||
'</td>',
|
||||
@ -465,13 +467,13 @@ define([
|
||||
'<table cols="1" style="width: 100%;">',
|
||||
'<tr>',
|
||||
'<td>',
|
||||
'<label>' + this.textCharacter + '</label>',
|
||||
'<label id="symbol-table-lbl-char">' + this.textCharacter + '</label>',
|
||||
'<label id="symbol-table-lbl-shortcut" style="width: 112px;" class="float-right">' + this.textShortcut + '</label>',
|
||||
'</td>',
|
||||
'</tr>',
|
||||
'<tr>',
|
||||
'<td>',
|
||||
'<div id="symbol-table-special-list" class="no-borders" style="width:100%; height: '+ (this.options.height-157 + 38*(this.special ? 0 : 1)) + 'px;"></div>',
|
||||
'<div id="symbol-table-special-list" class="no-borders" style="width:100%; height: '+ (this.options.height-157) + 'px;"></div>',
|
||||
'</td>',
|
||||
'</tr>',
|
||||
'</table>',
|
||||
@ -769,6 +771,18 @@ define([
|
||||
this.specialPanel = $window.find('#symbol-table-pnl-special');
|
||||
},
|
||||
|
||||
calcControlsHeight: function() {
|
||||
var $window = this.$window,
|
||||
tables = this.symbolsPanel.find('> table'),
|
||||
switcher = $window.find('#symbol-table-switcher'),
|
||||
bodyEl = $window.find('.body');
|
||||
this.hfHeight = parseInt($window.find('.header').css('height')) + parseInt($window.find('.footer').css('height')) + parseInt(bodyEl.css('padding-top')) + parseInt(bodyEl.css('padding-bottom')) +
|
||||
parseInt($window.css('border-bottom-width')) + parseInt($window.css('border-top-width'));
|
||||
this.switcherHeight = this.special ? switcher.height()+parseInt(switcher.css('margin-bottom')) : 0;
|
||||
this.controlsSpecialHeight = this.special && this.btnSpecial.isActive() ? $window.find('#symbol-table-lbl-char').height() + switcher.height()+parseInt(switcher.css('margin-bottom')) : 0;
|
||||
this.controlsSymbolsHeight = this.special && this.btnSpecial.isActive() ? 0 : tables.eq(0).height() + tables.eq(2).height() + tables.eq(3).height() + (this.special ? switcher.height()+parseInt(switcher.css('margin-bottom')) : 0);
|
||||
},
|
||||
|
||||
show: function() {
|
||||
Common.UI.Window.prototype.show.apply(this, arguments);
|
||||
|
||||
@ -1094,12 +1108,12 @@ define([
|
||||
},
|
||||
|
||||
getColsCount: function(){
|
||||
var nMaxWidth = this.boxPanel.innerWidth()-13;
|
||||
var nMaxWidth = this.boxPanel.width()-13;
|
||||
return ((nMaxWidth/CELL_WIDTH) >> 0);
|
||||
},
|
||||
|
||||
getMaxHeight: function(){
|
||||
return this.symbolTablePanel.innerHeight()-2;
|
||||
return this.symbolTablePanel.height()-2;
|
||||
},
|
||||
|
||||
getRowsCount: function() {
|
||||
@ -1431,20 +1445,11 @@ define([
|
||||
this.curSize = {resize: false, width: size[0], height: size[1]};
|
||||
} else if (this.curSize.resize) {
|
||||
this._preventUpdateScroll = false;
|
||||
this.curSize.height = size[1] - 304 + 38*(this.special ? 0 : 1);
|
||||
var rows = Math.max(1, (((this.curSize.height-2)/CELL_HEIGHT) >> 0)),
|
||||
height = rows*CELL_HEIGHT;
|
||||
|
||||
this.symbolTablePanel.css({'height': this.curSize.height + 'px'});
|
||||
this.previewPanel.css({'height': height + 'px'});
|
||||
this.previewScrolled.css({'height': height + 'px'});
|
||||
this.scrollerY = null;
|
||||
|
||||
this.updateView(undefined, undefined, undefined, true);
|
||||
|
||||
this.specialList.cmpEl.height(size[1] - 157 + 38*(this.special ? 0 : 1));
|
||||
|
||||
!this.special && (size[1] += 38);
|
||||
this.curSize.height = size[1];
|
||||
this.curSize.width = size[0];
|
||||
this.applyInnerSize(size[1]);
|
||||
this.special && (size[1] -= this.switcherHeight);
|
||||
var valJson = JSON.stringify(size);
|
||||
Common.localStorage.setItem(this.appPrefix + 'settings-size-symbol-table', valJson);
|
||||
Common.Utils.InternalSettings.set(this.appPrefix + 'settings-size-symbol-table', valJson);
|
||||
@ -1460,21 +1465,26 @@ define([
|
||||
this.curSize.resize = true;
|
||||
|
||||
this.curSize.width = size[0];
|
||||
this.curSize.height = size[1] - 304 + 38*(this.special ? 0 : 1);
|
||||
|
||||
var rows = Math.max(1, (((this.curSize.height-2)/CELL_HEIGHT) >> 0)),
|
||||
height = rows*CELL_HEIGHT;
|
||||
|
||||
this.symbolTablePanel.css({'height': this.curSize.height + 'px'});
|
||||
this.previewPanel.css({'height': height + 'px'});
|
||||
this.previewScrolled.css({'height': height + 'px'});
|
||||
|
||||
this.specialList.cmpEl.height(size[1] - 157 + 38*(this.special ? 0 : 1));
|
||||
|
||||
this.updateView(undefined, undefined, undefined, true);
|
||||
this.curSize.height = size[1];
|
||||
this.applyInnerSize(size[1]);
|
||||
}
|
||||
},
|
||||
|
||||
applyInnerSize: function(windowHeight) {
|
||||
var height = windowHeight - this.hfHeight;
|
||||
if (this.controlsSymbolsHeight) {
|
||||
height -= this.controlsSymbolsHeight;
|
||||
this.symbolTablePanel.css({'height': height + 'px'});
|
||||
|
||||
var rows = Math.max(1, (((height-2)/CELL_HEIGHT) >> 0));
|
||||
height = rows*CELL_HEIGHT;
|
||||
this.previewPanel.css({'height': height + 'px'});
|
||||
this.previewScrolled.css({'height': height + 'px'});
|
||||
this.updateView(undefined, undefined, undefined, true);
|
||||
} else
|
||||
this.specialList.cmpEl.height(height - this.controlsSpecialHeight);
|
||||
},
|
||||
|
||||
onModeClick: function(special, btn, event) {
|
||||
this.ShowHideElem(special);
|
||||
},
|
||||
@ -1482,6 +1492,8 @@ define([
|
||||
ShowHideElem: function(special) {
|
||||
this.symbolsPanel.toggleClass('hidden', special);
|
||||
this.specialPanel.toggleClass('hidden', !special);
|
||||
this.calcControlsHeight();
|
||||
this.applyInnerSize(this.getSize()[1]);
|
||||
var me = this;
|
||||
_.delay(function(){
|
||||
special ? me.specialList.focus() : me.previewPanel.focus();
|
||||
@ -1489,6 +1501,14 @@ define([
|
||||
|
||||
},
|
||||
|
||||
onThemeChanged: function() {
|
||||
if (!this.$window || !this.isVisible()) return;
|
||||
|
||||
Common.UI.Window.prototype.onThemeChanged.call(this);
|
||||
this.calcControlsHeight();
|
||||
this.applyInnerSize(this.getSize()[1]);
|
||||
},
|
||||
|
||||
textTitle: 'Symbol',
|
||||
textFont: 'Font',
|
||||
textRange: 'Range',
|
||||
|
||||
@ -509,6 +509,7 @@
|
||||
|
||||
@toolbar-small-btn-margin-top: var(--toolbar-small-btn-margin-top, 8px);
|
||||
@toolbar-height-controls: var(--toolbar-height-controls, 66px);
|
||||
@statusbar-height: var(--statusbar-height, 25px);
|
||||
@toolbar-group-height: var(--toolbar-group-height, 52px);
|
||||
@toolbar-v-paddings: calc((@toolbar-height-controls - @toolbar-group-height)/2);
|
||||
|
||||
|
||||
@ -5,9 +5,9 @@
|
||||
|
||||
.statusbar {
|
||||
height: 25px;
|
||||
height: var(--statusbar-height);
|
||||
height: @statusbar-height;
|
||||
background-color: @background-pane-ie;
|
||||
background-color: var(--background-statusbar);
|
||||
background-color: @background-statusbar;
|
||||
.box-inner-shadow(0 @scaled-one-px-value-ie 0 @border-toolbar-ie);
|
||||
.box-inner-shadow(0 @scaled-one-px-value 0 @border-toolbar);
|
||||
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
@statusbar-height: var(--statusbar-height, 25px);
|
||||
.statusbar {
|
||||
|
||||
.status-label {
|
||||
|
||||
|
After Width: | Height: | Size: 403 B |
|
After Width: | Height: | Size: 433 B |
|
After Width: | Height: | Size: 468 B |
BIN
apps/pdfeditor/main/resources/img/toolbar/1x/big/btn-listbox.png
Normal file
|
After Width: | Height: | Size: 359 B |
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none" viewBox="0 0 28 28">
|
||||
<path fill="#000" d="M18 7H5.5a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5H18v1H5.5A1.5 1.5 0 0 1 4 21.5v-14A1.5 1.5 0 0 1 5.5 6H18z"/>
|
||||
<path fill="#000" d="M14 19H7v-1h7zm0-4H7v-1h7zm0-4H7v-1h7zm8.207 7.5L20 20.707 17.793 18.5l.707-.707 1.5 1.5 1.5-1.5zm0-8-.707.707-1.5-1.5-1.5 1.5-.707-.707L20 8.293z"/>
|
||||
<path fill="#000" d="M22.653 6.008A1.5 1.5 0 0 1 24 7.5v14a1.5 1.5 0 0 1-1.5 1.5H16V6h6.5zM17 22h5.5a.5.5 0 0 0 .5-.5v-14a.5.5 0 0 0-.4-.49L22.5 7H17z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 567 B |
BIN
apps/pdfeditor/main/resources/img/toolbar/2x/big/btn-listbox.png
Normal file
|
After Width: | Height: | Size: 642 B |
|
After Width: | Height: | Size: 253 B |
|
After Width: | Height: | Size: 242 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 285 B |
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 199 B |
|
After Width: | Height: | Size: 241 B |
|
After Width: | Height: | Size: 163 B |
|
After Width: | Height: | Size: 237 B |
|
After Width: | Height: | Size: 240 B |
|
After Width: | Height: | Size: 319 B |
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 261 B |
|
After Width: | Height: | Size: 346 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 454 B |
|
After Width: | Height: | Size: 343 B |
|
After Width: | Height: | Size: 300 B |
|
After Width: | Height: | Size: 303 B |
|
After Width: | Height: | Size: 255 B |
|
After Width: | Height: | Size: 408 B |
|
After Width: | Height: | Size: 337 B |
|
After Width: | Height: | Size: 337 B |
|
After Width: | Height: | Size: 203 B |
|
After Width: | Height: | Size: 253 B |
|
After Width: | Height: | Size: 300 B |
BIN
apps/pdfeditor/main/resources/img/toolbar/v2/1.25x/btn-field.png
Normal file
|
After Width: | Height: | Size: 168 B |
|
After Width: | Height: | Size: 254 B |
|
After Width: | Height: | Size: 205 B |
|
After Width: | Height: | Size: 153 B |
|
After Width: | Height: | Size: 244 B |
|
After Width: | Height: | Size: 221 B |
|
After Width: | Height: | Size: 126 B |
|
After Width: | Height: | Size: 152 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 262 B |
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 168 B |
|
After Width: | Height: | Size: 278 B |
|
After Width: | Height: | Size: 296 B |
|
After Width: | Height: | Size: 232 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 173 B |
|
After Width: | Height: | Size: 286 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 351 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 291 B |
|
After Width: | Height: | Size: 341 B |
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 519 B |
|
After Width: | Height: | Size: 341 B |
|
After Width: | Height: | Size: 366 B |
|
After Width: | Height: | Size: 345 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 481 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 382 B |
|
After Width: | Height: | Size: 217 B |
|
After Width: | Height: | Size: 297 B |
|
After Width: | Height: | Size: 309 B |
BIN
apps/pdfeditor/main/resources/img/toolbar/v2/1.5x/btn-field.png
Normal file
|
After Width: | Height: | Size: 178 B |
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 166 B |
|
After Width: | Height: | Size: 270 B |
|
After Width: | Height: | Size: 241 B |
|
After Width: | Height: | Size: 149 B |
|
After Width: | Height: | Size: 159 B |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 410 B |
|
After Width: | Height: | Size: 288 B |
|
After Width: | Height: | Size: 182 B |
|
After Width: | Height: | Size: 344 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 258 B |
|
After Width: | Height: | Size: 295 B |
|
After Width: | Height: | Size: 183 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 289 B |
|
After Width: | Height: | Size: 332 B |
|
After Width: | Height: | Size: 356 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 390 B |
|
After Width: | Height: | Size: 261 B |
|
After Width: | Height: | Size: 638 B |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 383 B |
|
After Width: | Height: | Size: 419 B |
|
After Width: | Height: | Size: 269 B |