mirror of
https://github.com/tooot-app/app
synced 2025-01-05 05:59:15 +01:00
Fix default theming before selecting
This commit is contained in:
parent
0fc68e56d3
commit
20152790f5
@ -60,6 +60,7 @@ const determineTheme = (
|
|||||||
const determineDarkTheme = DarkTheme[darkTheme || 'lighter']
|
const determineDarkTheme = DarkTheme[darkTheme || 'lighter']
|
||||||
switch (userTheme) {
|
switch (userTheme) {
|
||||||
case 'auto':
|
case 'auto':
|
||||||
|
default:
|
||||||
switch (osTheme) {
|
switch (osTheme) {
|
||||||
case 'dark':
|
case 'dark':
|
||||||
return determineDarkTheme
|
return determineDarkTheme
|
||||||
@ -70,8 +71,6 @@ const determineTheme = (
|
|||||||
return 'light'
|
return 'light'
|
||||||
case 'dark':
|
case 'dark':
|
||||||
return determineDarkTheme
|
return determineDarkTheme
|
||||||
default:
|
|
||||||
return determineDarkTheme
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user