MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / setFont

Function setFont

packages/app-core/src/components/QuickCaptureApp.tsx:149–152  ·  view source on GitHub ↗
(name: string, value: string | null, fallback: string)

Source from the content-addressed store, hash-verified

147 html.style.setProperty('--z-editor-font-size', `${prefs.editorFontSize}px`)
148 html.style.setProperty('--z-editor-line-height', String(prefs.editorLineHeight))
149 const setFont = (name: string, value: string | null, fallback: string): void => {
150 if (value) html.style.setProperty(name, `"${value}", ${fallback}`)
151 else html.style.removeProperty(name)
152 }
153 setFont(
154 '--z-interface-font',
155 prefs.interfaceFont,

Callers 1

applyThemeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected