MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getSystemThemeName

Function getSystemThemeName

source code/utils/systemTheme.ts:26–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 * updates the cache on live changes.
25 */
26export function getSystemThemeName(): SystemTheme {
27 if (cachedSystemTheme === undefined) {
28 cachedSystemTheme = detectFromColorFgBg() ?? 'dark'
29 }
30 return cachedSystemTheme
31}
32
33/**
34 * Update the cached terminal theme. Called by the watcher when the OSC 11

Callers 2

ThemeProviderFunction · 0.85
resolveThemeSettingFunction · 0.85

Calls 1

detectFromColorFgBgFunction · 0.85

Tested by

no test coverage detected