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

Function makeCursorTheme

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

Source from the content-addressed store, hash-verified

360 }
361
362 function makeCursorTheme() {
363 const width = Number(appSettings?.value?.cursorWidth);
364 const cursorWidth =
365 Number.isFinite(width) && width > 0 ? Math.min(width, 10) : 2;
366 return EditorView.theme({
367 ".cm-cursor": {
368 borderLeftWidth: `${cursorWidth}px`,
369 },
370 });
371 }
372
373 function getConfiguredThemeExtension() {
374 const desiredTheme = appSettings?.value?.editorTheme;

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected