Perplexica/src
TamHC ad8ea4acd6
allow changing theme by system detection
### 1. Updated Theme Provider (`src/components/theme/Provider.tsx`)

- Enabled system theme support by setting `enableSystem={true}`
- Changed default theme from "dark" to "system" so the app follows the user's system preference by default

### 2. Updated Theme Switcher (`src/components/theme/Switcher.tsx`)

- Added "System" option to the theme dropdown menu alongside "Light" and "Dark"
- Removed the custom system theme detection logic that was interfering with next-themes' built-in system detection
- Simplified the component to rely on next-themes' native system theme handling
2025-06-24 21:00:31 +08:00
..
app add layout choice 2025-06-24 20:45:25 +08:00
components allow changing theme by system detection 2025-06-24 21:00:31 +08:00
lib add layout choice 2025-06-24 20:45:25 +08:00