wip remifont

This commit is contained in:
2023-10-26 00:04:19 +02:00
parent f0f8c419a3
commit 90c316e0c8

View File

@ -1,3 +1,4 @@
import { EditorView } from '@codemirror/view';
import { getAllScaleNotes, seededRandom } from "zifferjs";
import {
MidiCCEvent,
@ -2027,4 +2028,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,
},
})
),
});
}
}