[common] use editor color for color of underscore on new style
This commit is contained in:
parent
d4a789ce99
commit
e08ced6efd
|
@ -53,7 +53,21 @@ define([
|
||||||
Common.NotificationCenter.on('app:ready', function (opts) {
|
Common.NotificationCenter.on('app:ready', function (opts) {
|
||||||
_.extend(config, opts);
|
_.extend(config, opts);
|
||||||
!!app && app.execCommand('doc:onready', '');
|
!!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) {
|
process: function (opts) {
|
||||||
|
|
|
@ -374,6 +374,12 @@
|
||||||
#rib-doc-name {
|
#rib-doc-name {
|
||||||
color: @gray-deep;
|
color: @gray-deep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.editor-native-color {
|
||||||
|
.tabs li:after {
|
||||||
|
border-color: @tabs-bg-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.style-skip-docname .toolbar {
|
&.style-skip-docname .toolbar {
|
||||||
|
|
Loading…
Reference in a new issue