import { Capacitor, SystemBars, SystemBarsStyle } from '@capacitor/core'; /** * One-time Capacitor-native bootstrap: configures system chrome to match * the active CSS theme and hides the iOS keyboard accessory bar. * * Call this from `src/main.tsx` **before** `createRoot(...).render(...)`. * On web this is a no-op. * * What it does on native: * * 1. Hides the iOS keyboard accessory bar (the prev/next/done toolbar above * the keyboard) — most apps don't need it and it steals screen space. * * 2. Keeps the native system bar icon style (clock, battery, etc.) in sync * with the active CSS theme. When the app is on a dark background, icons * are rendered light; on a light background, dark. This is re-applied * whenever: * - the `class` on `` changes (light / dark / any custom theme * that toggles a class, e.g. your AppProvider) * - the contents of `