MCPcopy Create free account
hub / github.com/anus-dev/ANUS / setActiveTheme

Method setActiveTheme

packages/cli/src/ui/themes/theme-manager.ts:115–122  ·  view source on GitHub ↗

* Sets the active theme. * @param themeName The name of the theme to set as active. * @returns True if the theme was successfully set, false otherwise.

(themeName: string | undefined)

Source from the content-addressed store, hash-verified

113 * @returns True if the theme was successfully set, false otherwise.
114 */
115 setActiveTheme(themeName: string | undefined): boolean {
116 const theme = this.findThemeByName(themeName);
117 if (!theme) {
118 return false;
119 }
120 this.activeTheme = theme;
121 return true;
122 }
123
124 /**
125 * Gets the currently active theme.

Callers 3

mainFunction · 0.80
useThemeCommandFunction · 0.80

Calls 1

findThemeByNameMethod · 0.95

Tested by

no test coverage detected