feat(web): add theme toggle to navbar (#1540)

* feat(web): add theme toggle to navbar

* refactor: move OS theme detection to App.tsx

* fix:  disallowed unused variables

* fix: removed unused variable

* refactor: check for os color scheme in SettingsContextDefaults

* refactor: remove unnecessary iconTheme variable

* fix: add title tag to button
This commit is contained in:
soup 2024-05-07 12:42:52 +02:00 committed by GitHub
parent 28172cfba6
commit 3dab295387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 42 additions and 5 deletions

View file

@ -35,7 +35,7 @@ export type FilterListState = {
const SettingsContextDefaults: SettingsType = {
debug: false,
checkForUpdates: true,
darkTheme: true,
darkTheme: window.matchMedia('(prefers-color-scheme: dark)').matches,
scrollOnNewLog: false,
indentLogLines: false,
hideWrappedText: false