- 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
20 lines
482 B
TypeScript
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>
|
|
);
|