[DE][PE] Debug view mode.

This commit is contained in:
Julia Radzhabova 2017-04-26 16:51:23 +03:00
parent 8f027e886d
commit 03abcc2d8b
3 changed files with 41 additions and 31 deletions

View file

@ -1988,7 +1988,9 @@ define([
onToolbarAfterRender: function(toolbar) {
// DataView and pickers
//
var colorVal = $('<div class="btn-color-value-line"></div>');
var colorVal;
if (this.btnHighlightColor.cmpEl) {
colorVal = $('<div class="btn-color-value-line"></div>');
$('button:first-child', this.btnHighlightColor.cmpEl).append(colorVal);
this.btnHighlightColor.currentColor = 'FFFF00';
colorVal.css('background-color', '#' + this.btnHighlightColor.currentColor);
@ -2000,14 +2002,18 @@ define([
]
});
this.mnuHighlightColorPicker.select('FFFF00');
}
if (this.btnFontColor.cmpEl) {
colorVal = $('<div class="btn-color-value-line"></div>');
$('button:first-child', this.btnFontColor.cmpEl).append(colorVal);
colorVal.css('background-color', this.btnFontColor.currentColor || 'transparent');
this.mnuFontColorPicker = new Common.UI.ThemeColorPalette({
el: $('#id-toolbar-menu-fontcolor')
});
}
if (this.btnParagraphColor.cmpEl) {
colorVal = $('<div class="btn-color-value-line"></div>');
$('button:first-child', this.btnParagraphColor.cmpEl).append(colorVal);
colorVal.css('background-color', this.btnParagraphColor.currentColor || 'transparent');
@ -2015,6 +2021,7 @@ define([
el: $('#id-toolbar-menu-paracolor'),
transparent: true
});
}
},
updateMetricUnit: function () {

View file

@ -1403,12 +1403,14 @@ define([
onToolbarAfterRender: function(toolbar) {
// DataView and pickers
//
if (this.btnFontColor.cmpEl) {
var colorVal = $('<div class="btn-color-value-line"></div>');
$('button:first-child', this.btnFontColor.cmpEl).append(colorVal);
colorVal.css('background-color', this.btnFontColor.currentColor || 'transparent');
this.mnuFontColorPicker = new Common.UI.ThemeColorPalette({
el: $('#id-toolbar-menu-fontcolor')
});
}
},
setApi: function (api) {

View file

@ -41,6 +41,7 @@
#btn-zoom-topage {
.btn-tpl(-1160px);
margin-right: 9px;
margin-left: 6px;
}
#btn-zoom-towidth {