diff options
author | Eric Bailey <git@esb.lol> | 2024-02-16 13:25:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 13:25:20 -0600 |
commit | 4e66c9b806f622e51e4c07f16fd9db320845ea3d (patch) | |
tree | 0a358d1f5e7545837af0eb8826e3d6e22e36a648 /src/components | |
parent | 1d729721e553848037700688e2f1ccde333a8c84 (diff) | |
download | voidsky-4e66c9b806f622e51e4c07f16fd9db320845ea3d.tar.zst |
Fix default loader color (#2891)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Loader.tsx | 13 |
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> ) } |