Phillnet-2 / Tools /services /themeService.ts
ayjays132's picture
Upload 478 files
101858b verified
export type ThemeMode = 'idle' | 'busy' | 'error' | 'success' | 'alert';
export class ThemeService {
private static currentMode: ThemeMode = 'idle';
static setMode(mode: ThemeMode) {
this.currentMode = mode;
console.log(`[ThemeEngine] Mode shifted to: ${mode.toUpperCase()}`);
// In a GUI, this would trigger CSS variable updates or broadcast to the frontend
}
static getMode(): ThemeMode {
return this.currentMode;
}
}