about summary refs log tree commit diff
path: root/src/Splash.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-02-18 14:44:48 -0800
committerHailey <me@haileyok.com>2024-02-18 14:44:48 -0800
commitdcf9fa5e11695a2eb70170baabde584a01fc8d36 (patch)
tree913b624db9c36d5558bd3a31cd9d042f8f4ceb8b /src/Splash.tsx
parent31b7f7601563adea2dd8372b62c911b183953eec (diff)
parenta40b43dfc922ced379b73ec3967d8fb297cea925 (diff)
downloadvoidsky-dcf9fa5e11695a2eb70170baabde584a01fc8d36.tar.zst
Merge branch 'main' into fork/main
# Conflicts:
#	src/locale/locales/it/messages.po
Diffstat (limited to 'src/Splash.tsx')
-rw-r--r--src/Splash.tsx12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Splash.tsx b/src/Splash.tsx
index 80d0a66e7..b2381f923 100644
--- a/src/Splash.tsx
+++ b/src/Splash.tsx
@@ -21,7 +21,6 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'
 import Svg, {Path, SvgProps} from 'react-native-svg'
 
 import {isAndroid} from '#/platform/detection'
-import {useThemePrefs} from 'state/shell'
 import {Logotype} from '#/view/icons/Logotype'
 
 // @ts-ignore
@@ -75,10 +74,8 @@ export function Splash(props: React.PropsWithChildren<Props>) {
     isLayoutReady &&
     reduceMotion !== undefined
 
-  const {colorMode} = useThemePrefs()
   const colorScheme = useColorScheme()
-  const themeName = colorMode === 'system' ? colorScheme : colorMode
-  const isDarkMode = themeName === 'dark'
+  const isDarkMode = colorScheme === 'dark'
 
   const logoAnimation = useAnimatedStyle(() => {
     return {
@@ -263,7 +260,12 @@ export function Splash(props: React.PropsWithChildren<Props>) {
               <View
                 style={[
                   StyleSheet.absoluteFillObject,
-                  {backgroundColor: '#fff'},
+                  {
+                    backgroundColor: isDarkMode
+                      ? // special off-spec color for dark mode
+                        '#0F1824'
+                      : '#fff',
+                  },
                 ]}
               />
             )}