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

Method getActiveTheme

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

* Gets the currently active theme. * @returns The active theme.

()

Source from the content-addressed store, hash-verified

126 * @returns The active theme.
127 */
128 getActiveTheme(): Theme {
129 if (process.env['NO_COLOR']) {
130 return NoColorTheme;
131 }
132 // Ensure the active theme is always valid (fall back to default if not)
133 if (!this.activeTheme || !this.findThemeByName(this.activeTheme.name)) {
134 this.activeTheme = DEFAULT_THEME;
135 }
136 return this.activeTheme;
137 }
138
139 /**
140 * Gets the semantic colors for the active theme.

Callers 15

getSemanticColorsMethod · 0.95
typeFunction · 0.80
ForegroundFunction · 0.80
BackgroundFunction · 0.80
LightBlueFunction · 0.80
AccentBlueFunction · 0.80
AccentPurpleFunction · 0.80
AccentCyanFunction · 0.80
AccentGreenFunction · 0.80
AccentYellowFunction · 0.80
AccentRedFunction · 0.80
DiffAddedFunction · 0.80

Calls 1

findThemeByNameMethod · 0.95

Tested by

no test coverage detected