use t.scheme in other places

This commit is contained in:
Samuel Newman
2024-11-28 10:56:53 +00:00
parent 4054243cb2
commit 6b525a41d0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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'
} }