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') {
|
if (themeType === 'theme') {
|
||||||
NavigationBar.setBackgroundColorAsync(t.atoms.bg.backgroundColor)
|
NavigationBar.setBackgroundColorAsync(t.atoms.bg.backgroundColor)
|
||||||
NavigationBar.setBorderColorAsync(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 {
|
} else {
|
||||||
NavigationBar.setBackgroundColorAsync('black')
|
NavigationBar.setBackgroundColorAsync('black')
|
||||||
NavigationBar.setBorderColorAsync('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]}>
|
<View testID="mobileShellView" style={[a.h_full, t.atoms.bg]}>
|
||||||
<StatusBar
|
<StatusBar
|
||||||
style={
|
style={
|
||||||
t.name !== 'light' || (isIOS && fullyExpandedCount > 0)
|
t.scheme === 'dark' || (isIOS && fullyExpandedCount > 0)
|
||||||
? 'light'
|
? 'light'
|
||||||
: 'dark'
|
: 'dark'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user