MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / resolveTheme

Function resolveTheme

webui/src/store/themeStore.ts:36–38  ·  view source on GitHub ↗
(theme: Theme)

Source from the content-addressed store, hash-verified

34}
35
36function resolveTheme(theme: Theme): 'light' | 'dark' {
37 return theme === 'system' ? getSystemTheme() : theme
38}
39
40// Initialize theme immediately to prevent flash
41const initialTheme = getStoredTheme()

Callers 1

themeStore.tsFile · 0.85

Calls 1

getSystemThemeFunction · 0.85

Tested by

no test coverage detected