This commit is contained in:
2023-10-26 02:09:38 +03:00
18 changed files with 109 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import { EditorView } from '@codemirror/view';
import { getAllScaleNotes, seededRandom } from "zifferjs";
import {
MidiCCEvent,
@ -2031,4 +2032,25 @@ export class UserAPI {
...config,
};
};
// =============================================================
// Ralt144mi section
// =============================================================
raltfont = (mainFont: string, commentFont: string): void => {
this.app.view.dispatch({
effects: this.app.fontSize.reconfigure(
EditorView.theme({
"&": { fontFamily: mainFont },
".cm-gutters": { fontFamily: mainFont, },
".cm-content": {
fontFamily: mainFont,
},
".cm-comment": {
fontFamily: commentFont,
},
})
),
});
}
}