[Video] Misc player style tweaks (#5064)
* use actual black rather than theme black * adjust time/mute indicators
This commit is contained in:
parent
17d82a64a6
commit
eb868a042a
7 changed files with 31 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue