Skip to content

Commit

Permalink
fix: colors for status bar, boot and onboarding (#1234)
Browse files Browse the repository at this point in the history
* fix: status bar color

* fix: boot colors

* remove redundant
  • Loading branch information
monopoint authored Jun 2, 2021
1 parent 65a3062 commit 6dcbd34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:textColor">#000000</item>
<item name="android:colorBackground">@color/bootsplash_background</item>
<item name="android:statusBarColor">@color/bootsplash_background</item>

</style>

<!-- BootTheme should inherit from AppTheme -->
Expand Down
6 changes: 5 additions & 1 deletion src/navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,16 @@ const NavigationRoot = () => {
return null;
}

const statusBarColor = onboarded
? theme.colors.background_gray.backgroundColor
: theme.colors.primary_2.backgroundColor;

return (
<>
<StatusBar
barStyle={theme.statusBarStyle}
translucent={true}
backgroundColor={theme.colors.primary_2.backgroundColor}
backgroundColor={statusBarColor}
/>
<Host>
<NavigationContainer ref={ref} onStateChange={trackNavigation}>
Expand Down

0 comments on commit 6dcbd34

Please sign in to comment.