Documentation
    Preparing search index...

    Function createThemeProxy

    • Factory for the canonical theme-domain proxy.

      Parameters

      Returns ThemeProxy

      A ThemeProxy ready to route theme.* envelopes

      import { createThemeProxy, originRegistry, createShellBridge } from '@kehto/shell';

      const bridge = createShellBridge(hooks);
      const themeProxy = createThemeProxy({
      runtime: bridge.runtime,
      originRegistry,
      });

      // Phase 13: broadcast theme.changed to every registered napplet
      for (const entry of bridge.runtime.sessionRegistry.getAllEntries()) {
      themeProxy.emit(entry.windowId, { type: 'theme.changed', theme: newTheme });
      }