about summary refs log tree commit diff
path: root/src/components/Loader.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/components/Loader.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/components/Loader.tsx')
-rw-r--r--src/components/Loader.tsx13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/components/Loader.tsx b/src/components/Loader.tsx
index bbe4e2f75..b9f399f95 100644
--- a/src/components/Loader.tsx
+++ b/src/components/Loader.tsx
@@ -7,11 +7,12 @@ import Animated, {
   withTiming,
 } from 'react-native-reanimated'
 
-import {atoms as a} from '#/alf'
+import {atoms as a, useTheme, flatten} from '#/alf'
 import {Props, useCommonSVGProps} from '#/components/icons/common'
 import {Loader_Stroke2_Corner0_Rounded as Icon} from '#/components/icons/Loader'
 
 export function Loader(props: Props) {
+  const t = useTheme()
   const common = useCommonSVGProps(props)
   const rotation = useSharedValue(0)
 
@@ -35,7 +36,15 @@ export function Loader(props: Props) {
         {width: common.size, height: common.size},
         animatedStyles,
       ]}>
-      <Icon {...props} style={[a.absolute, a.inset_0, props.style]} />
+      <Icon
+        {...props}
+        style={[
+          a.absolute,
+          a.inset_0,
+          t.atoms.text_contrast_high,
+          flatten(props.style),
+        ]}
+      />
     </Animated.View>
   )
 }