MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / makeFontTheme

Function makeFontTheme

src/lib/editorManager.js:350–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348 }
349
350 function makeFontTheme() {
351 const fontSize = appSettings?.value?.fontSize || "12px";
352 const lineHeight = appSettings?.value?.lineHeight || 1.6;
353 const fontFamily = getEditorFontFamily();
354 return EditorView.theme({
355 "&": { fontSize, lineHeight: String(lineHeight) },
356 ".cm-content": { fontFamily },
357 ".cm-gutter": { fontFamily },
358 ".cm-tooltip, .cm-tooltip *": { fontFamily },
359 });
360 }
361
362 function makeCursorTheme() {
363 const width = Number(appSettings?.value?.cursorWidth);

Callers 1

buildFunction · 0.85

Calls 2

StringInterface · 0.85
getEditorFontFamilyFunction · 0.70

Tested by

no test coverage detected