use t.scheme in other places
This commit is contained in:
@@ -8,7 +8,7 @@ export function setNavigationBar(themeType: 'theme' | 'lightbox', t: Theme) {
|
||||
if (themeType === 'theme') {
|
||||
NavigationBar.setBackgroundColorAsync(t.atoms.bg.backgroundColor)
|
||||
NavigationBar.setBorderColorAsync(t.atoms.bg.backgroundColor)
|
||||
NavigationBar.setButtonStyleAsync(t.name !== 'light' ? 'light' : 'dark')
|
||||
NavigationBar.setButtonStyleAsync(t.scheme === 'dark' ? 'light' : 'dark')
|
||||
} else {
|
||||
NavigationBar.setBackgroundColorAsync('black')
|
||||
NavigationBar.setBorderColorAsync('black')
|
||||
|
||||
@@ -141,7 +141,7 @@ export const Shell: React.FC = function ShellImpl() {
|
||||
<View testID="mobileShellView" style={[a.h_full, t.atoms.bg]}>
|
||||
<StatusBar
|
||||
style={
|
||||
t.name !== 'light' || (isIOS && fullyExpandedCount > 0)
|
||||
t.scheme === 'dark' || (isIOS && fullyExpandedCount > 0)
|
||||
? 'light'
|
||||
: 'dark'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user