Files
EasyCLIProxyAPI/src/main.tsx
T
lzt404 739c6e1711 feat(theme): support system appearance across desktop platforms
- Use Tauri native theme APIs with Linux desktop preference support
- Fall back to WebView theme detection for startup and browser preview
- Add a follow-system option to both standard and beginner modes
- Persist preferences and handle resume events and async race conditions
- Add translations and theme behavior and UI regression tests
2026-09-11 16:25:14 +08:00

20 lines
482 B
TypeScript

import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { AppErrorBoundary } from './AppErrorBoundary';
import App from './App';
import { I18nProvider } from './i18n';
import { initializeTheme } from './theme';
import './styles.css';
initializeTheme();
createRoot(document.getElementById('root')!).render(
<StrictMode>
<I18nProvider>
<AppErrorBoundary>
<App />
</AppErrorBoundary>
</I18nProvider>
</StrictMode>
);