MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / readThemeColorInput

Function readThemeColorInput

src/settings/components/CardComponent.ts:661–665  ·  view source on GitHub ↗
(input: HTMLInputElement, fallback: string)

Source from the content-addressed store, hash-verified

659}
660
661export function readThemeColorInput(input: HTMLInputElement, fallback: string): string {
662 const color = normalizeThemeColor(input.value, fallback);
663 input.value = colorValueToInputValue(color);
664 return color;
665}
666
667/**
668 * Creates an Obsidian-style toggle switch for card content

Callers 3

renderPriorityListFunction · 0.90
renderStatusListFunction · 0.90

Calls 2

normalizeThemeColorFunction · 0.90
colorValueToInputValueFunction · 0.90

Tested by

no test coverage detected