Skip to content

Commit

Permalink
wip remifont
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Oct 25, 2023
1 parent f0f8c41 commit 90c316e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/API.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { EditorView } from '@codemirror/view';
import { getAllScaleNotes, seededRandom } from "zifferjs";
import {
MidiCCEvent,
Expand Down Expand Up @@ -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,
},
})
),
});
}
}

0 comments on commit 90c316e

Please sign in to comment.