Fix color scheme default (#4185)
Small follower for #4184 ### Change type - [x] `bugfix`
This commit is contained in:
parent
792de3c64e
commit
62fe6561c7
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@ export function ColorSchemeMenu() {
|
||||||
const trackEvent = useUiEvents()
|
const trackEvent = useUiEvents()
|
||||||
const currentColorScheme = useValue(
|
const currentColorScheme = useValue(
|
||||||
'colorScheme',
|
'colorScheme',
|
||||||
() => editor.user.getUserPreferences().colorScheme ?? 'system',
|
() =>
|
||||||
|
editor.user.getUserPreferences().colorScheme ?? editor.user.getIsDarkMode()
|
||||||
|
? 'dark'
|
||||||
|
: 'light',
|
||||||
[editor]
|
[editor]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue