MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / isKnownTheme

Function isKnownTheme

desktop/runtime-host/settings-service.ts:136–142  ·  view source on GitHub ↗
(
  themeName: string,
  projectPath?: string | undefined | null | undefined,
)

Source from the content-addressed store, hash-verified

134}
135
136async function isKnownTheme(
137 themeName: string,
138 projectPath?: string | undefined | null | undefined,
139) {
140 const themeState = await loadPiThemeStateInHost(projectPath)
141 return themeState.themes.some((theme) => theme.name === themeName)
142}
143
144async function updateThemeSetting(
145 settingsManager: PiSettingsManager,

Callers 1

updateThemeSettingFunction · 0.85

Calls 1

loadPiThemeStateInHostFunction · 0.90

Tested by

no test coverage detected