()
| 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); |
no test coverage detected