diff options
author | dan <dan.abramov@gmail.com> | 2024-11-22 19:43:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 19:43:32 +0000 |
commit | 7fa47ef3c96ff07ef9eaf09df307d931606ca985 (patch) | |
tree | 3d5ee30dac603d0df897a7c21d6cbb4d8dee73b6 /src | |
parent | ced67876cc9acbff3746151db3aa06dbf8ab7786 (diff) | |
download | voidsky-7fa47ef3c96ff07ef9eaf09df307d931606ca985.tar.zst |
Simplify play icon shadow (#6641)
* Simplify play icon shadow * Make it consistent across themes
Diffstat (limited to 'src')
-rw-r--r-- | src/components/video/PlayButtonIcon.tsx | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/src/components/video/PlayButtonIcon.tsx b/src/components/video/PlayButtonIcon.tsx index 84a450767..801cad9b9 100644 --- a/src/components/video/PlayButtonIcon.tsx +++ b/src/components/video/PlayButtonIcon.tsx @@ -9,39 +9,23 @@ export function PlayButtonIcon({size = 32}: {size?: number}) { const fg = t.name === 'light' ? t.palette.contrast_975 : t.palette.contrast_25 return ( - <View - style={[ - a.rounded_full, - a.overflow_hidden, - a.align_center, - a.justify_center, - t.atoms.shadow_lg, - { - width: size + size / 1.5, - height: size + size / 1.5, - }, - ]}> + <> <View style={[ - a.absolute, - a.inset_0, + a.rounded_full, { backgroundColor: bg, + shadowColor: 'black', + shadowRadius: 32, + shadowOpacity: 0.5, + elevation: 24, + width: size + size / 1.5, + height: size + size / 1.5, opacity: 0.7, }, ]} /> - <PlayIcon - width={size} - fill={fg} - style={[ - a.relative, - a.z_10, - { - left: size / 50, - }, - ]} - /> - </View> + <PlayIcon width={size} fill={fg} style={a.absolute} /> + </> ) } |