[Video] Misc player style tweaks (#5064)

* use actual black rather than theme black

* adjust time/mute indicators
This commit is contained in:
Samuel Newman 2024-09-02 09:33:46 +01:00 committed by GitHub
parent 17d82a64a6
commit eb868a042a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 31 additions and 30 deletions

View file

@ -5,7 +5,7 @@ import {ImagePickerAsset} from 'expo-image-picker'
import {CompressedVideo} from '#/lib/media/video/types'
import {clamp} from '#/lib/numbers'
import {ExternalEmbedRemoveBtn} from 'view/com/composer/ExternalEmbedRemoveBtn'
import {atoms as a, useTheme} from '#/alf'
import {atoms as a} from '#/alf'
export function VideoPreview({
asset,
@ -18,7 +18,6 @@ export function VideoPreview({
setDimensions: (width: number, height: number) => void
clear: () => void
}) {
const t = useTheme()
const ref = useRef<HTMLVideoElement>(null)
useEffect(() => {
@ -54,7 +53,7 @@ export function VideoPreview({
a.rounded_sm,
{aspectRatio},
a.overflow_hidden,
{backgroundColor: t.palette.black},
{backgroundColor: 'black'},
]}>
<ExternalEmbedRemoveBtn onRemove={clear} />
<video