Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

565 B
Raw Blame
/**
 * Default Theme Service - Generic implementation with minimal returns
 */

import type { ThemeService, ThemeMode } from './types'

export class DefaultThemeService implements ThemeService {
  async setTheme(theme: ThemeMode): Promise<void> {
    console.log('setTheme called with theme:', theme)
    // No-op - not implemented in default service
  }

  getCurrentWindow() {
    return {
      setTheme: (theme: ThemeMode): Promise<void> => {
        console.log('window.setTheme called with theme:', theme)
        return Promise.resolve()
      }
    }
  }
}