MCPcopy Index your code
hub / github.com/gitify-app/gitify / mapThemeModeToColorMode

Function mapThemeModeToColorMode

src/renderer/utils/ui/theme.ts:10–24  ·  view source on GitHub ↗
(themeMode: Theme)

Source from the content-addressed store, hash-verified

8export const DEFAULT_NIGHT_HIGH_CONTRAST_COLOR_SCHEME = 'dark_high_contrast';
9
10export function mapThemeModeToColorMode(themeMode: Theme): ColorModeWithAuto {
11 switch (themeMode) {
12 case Theme.LIGHT:
13 case Theme.LIGHT_COLORBLIND:
14 case Theme.LIGHT_TRITANOPIA:
15 return 'day';
16 case Theme.DARK:
17 case Theme.DARK_COLORBLIND:
18 case Theme.DARK_TRITANOPIA:
19 case Theme.DARK_DIMMED:
20 return 'night';
21 default:
22 return 'auto';
23 }
24}
25
26export function mapThemeModeToColorScheme(
27 themeMode: Theme,

Callers 2

theme.test.tsFile · 0.90
AppProviderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected