(options: {
includeAutoTheme: boolean;
})
| 14 | } |
| 15 | |
| 16 | export 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 | |
| 38 | export function getThemeOnboardingVisibleRowContract(options: { |
| 39 | includeAutoTheme: boolean; |
no outgoing calls
no test coverage detected