MCPcopy Create free account
hub / github.com/Noumena-Network/code / getThemePickerOptionContracts

Function getThemePickerOptionContracts

src/utils/themeOnboardingOutput.ts:16–36  ·  view source on GitHub ↗
(options: {
  includeAutoTheme: boolean;
})

Source from the content-addressed store, hash-verified

14}
15
16export function getThemePickerOptionContracts(options: {
17 includeAutoTheme: boolean;
18}): Array<{ label: string; value: ThemeSetting }> {
19 return [
20 ...(options.includeAutoTheme ?
21 [{ label: 'Auto (match terminal)', value: 'auto' as const }] :
22 []),
23 { label: 'Dark mode', value: 'dark' as const },
24 { label: 'Light mode', value: 'light' as const },
25 {
26 label: 'Dark mode (colorblind-friendly)',
27 value: 'dark-daltonized' as const,
28 },
29 {
30 label: 'Light mode (colorblind-friendly)',
31 value: 'light-daltonized' as const,
32 },
33 { label: 'Dark mode (ANSI colors only)', value: 'dark-ansi' as const },
34 { label: 'Light mode (ANSI colors only)', value: 'light-ansi' as const },
35 ];
36}
37
38export function getThemeOnboardingVisibleRowContract(options: {
39 includeAutoTheme: boolean;

Callers 3

ThemePickerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected