mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
Fix timing issues when detecting dark mode
This commit is contained in:
parent
e7b49baf13
commit
9587cfd067
2 changed files with 5 additions and 2 deletions
|
|
@ -49,7 +49,9 @@
|
||||||
border-bottom-color: #1b1b1b;
|
border-bottom-color: #1b1b1b;
|
||||||
}
|
}
|
||||||
.light_dark_top(@cs) when not (@cs = moono-dark) {
|
.light_dark_top(@cs) when not (@cs = moono-dark) {
|
||||||
border-bottom-color: #555;
|
.color_scheme_dark & {
|
||||||
|
border-bottom-color: #555;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ function getAutoSavedSrl(ret_obj, response_tags, c) {
|
||||||
(function($){
|
(function($){
|
||||||
"use strict";
|
"use strict";
|
||||||
var default_ckeconfig = {
|
var default_ckeconfig = {
|
||||||
bodyClass: 'rhymix_content xe_content editable color_scheme_' + getColorScheme(),
|
bodyClass: 'rhymix_content xe_content editable',
|
||||||
toolbarCanCollapse: true,
|
toolbarCanCollapse: true,
|
||||||
toolbarGroups: [
|
toolbarGroups: [
|
||||||
{ name: 'clipboard', groups: [ 'undo', 'clipboard' ] },
|
{ name: 'clipboard', groups: [ 'undo', 'clipboard' ] },
|
||||||
|
|
@ -84,6 +84,7 @@ function getAutoSavedSrl(ret_obj, response_tags, c) {
|
||||||
var fo_obj = getCkFormInstance(editor_sequence);
|
var fo_obj = getCkFormInstance(editor_sequence);
|
||||||
|
|
||||||
this.ckeconfig = $.extend({}, default_ckeconfig, opts.ckeconfig || {});
|
this.ckeconfig = $.extend({}, default_ckeconfig, opts.ckeconfig || {});
|
||||||
|
this.ckeconfig.bodyClass = this.ckeconfig.bodyClass + ' color_scheme_' + getColorScheme();
|
||||||
|
|
||||||
this.editor_sequence = data.editorSequence;
|
this.editor_sequence = data.editorSequence;
|
||||||
$form.attr('editor_sequence', data.editorSequence);
|
$form.attr('editor_sequence', data.editorSequence);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue