wip remifont
This commit is contained in:
22
src/API.ts
22
src/API.ts
@ -1,3 +1,4 @@
|
|||||||
|
import { EditorView } from '@codemirror/view';
|
||||||
import { getAllScaleNotes, seededRandom } from "zifferjs";
|
import { getAllScaleNotes, seededRandom } from "zifferjs";
|
||||||
import {
|
import {
|
||||||
MidiCCEvent,
|
MidiCCEvent,
|
||||||
@ -2027,4 +2028,25 @@ export class UserAPI {
|
|||||||
...config,
|
...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,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user