diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-11-23 16:20:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-23 16:20:24 -0800 |
commit | 32bf8122e8c8a0fbadd53b8a015cfbc9014519a2 (patch) | |
tree | 55bd24596e6fadadbf4326b26e3d14e418c5c7bb /src/components/video/PlayButtonIcon.tsx | |
parent | 523d1f01a51c0e85e49916fb42b204f7004ffac1 (diff) | |
parent | b4d07c4112b9a62b5380948051aa4a7fd391a2d4 (diff) | |
download | voidsky-32bf8122e8c8a0fbadd53b8a015cfbc9014519a2.tar.zst |
Merge branch 'main' into main
Diffstat (limited to 'src/components/video/PlayButtonIcon.tsx')
-rw-r--r-- | src/components/video/PlayButtonIcon.tsx | 37 |
1 files changed, 10 insertions, 27 deletions
diff --git a/src/components/video/PlayButtonIcon.tsx b/src/components/video/PlayButtonIcon.tsx index 8e0a6bb7a..801cad9b9 100644 --- a/src/components/video/PlayButtonIcon.tsx +++ b/src/components/video/PlayButtonIcon.tsx @@ -1,4 +1,3 @@ -import React from 'react' import {View} from 'react-native' import {atoms as a, useTheme} from '#/alf' @@ -10,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} /> + </> ) } |