[common] use editor color for color of underscore on new style

This commit is contained in:
Maxim Kadushkin 2019-02-07 15:04:13 +03:00
parent d4a789ce99
commit e08ced6efd
2 changed files with 20 additions and 0 deletions

View file

@ -53,7 +53,21 @@ define([
Common.NotificationCenter.on('app:ready', function (opts) {
_.extend(config, opts);
!!app && app.execCommand('doc:onready', '');
$('.toolbar').addClass('editor-native-color');
});
app.on_native_message = function (cmd, param) {
if (/^style:change/.test(cmd)) {
var obj = JSON.parse(param);
if ( obj.element == 'toolbar' ) {
if ( obj.action == 'off' && obj.style == 'native-color' ) {
$('.toolbar').removeClass('editor-native-color');
}
}
}
}
}
},
process: function (opts) {

View file

@ -374,6 +374,12 @@
#rib-doc-name {
color: @gray-deep;
}
&.editor-native-color {
.tabs li:after {
border-color: @tabs-bg-color;
}
}
}
&.style-skip-docname .toolbar {