MCPcopy
hub / github.com/callumalpass/tasknotes / createThemeColorInput

Function createThemeColorInput

src/settings/components/CardComponent.ts:655–659  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

653}
654
655export function createThemeColorInput(value?: string): HTMLInputElement {
656 const input = createCardInput("text", THEME_COLOR_INPUT_PLACEHOLDER, colorValueToInputValue(value));
657 configureThemeColorInput(input);
658 return input;
659}
660
661export function readThemeColorInput(input: HTMLInputElement, fallback: string): string {
662 const color = normalizeThemeColor(input.value, fallback);

Callers 3

renderPriorityListFunction · 0.90
renderStatusListFunction · 0.90

Calls 3

colorValueToInputValueFunction · 0.90
createCardInputFunction · 0.85
configureThemeColorInputFunction · 0.85

Tested by

no test coverage detected