mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
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:
parent
28172cfba6
commit
3dab295387
3 changed files with 42 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue