From 77a62c576fae858432e65dc0c5638c5b86ca6183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 13 Oct 2025 11:29:15 +0200 Subject: [PATCH] pl-fe: video/audio player restyle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/features/audio/index.tsx | 35 +++++++--------- packages/pl-fe/src/features/video/index.tsx | 30 ++++++++++---- .../src/styles/components/video-player.scss | 40 ++++++++++++------- 3 files changed, 63 insertions(+), 42 deletions(-) diff --git a/packages/pl-fe/src/features/audio/index.tsx b/packages/pl-fe/src/features/audio/index.tsx index 823535db7..d710f9197 100644 --- a/packages/pl-fe/src/features/audio/index.tsx +++ b/packages/pl-fe/src/features/audio/index.tsx @@ -316,7 +316,7 @@ const Audio: React.FC = (props) => { }; const _draw = () => { - visualizer.current?.draw(_getCX(), _getCY(), _getAccentColor(), _getRadius(), _getScaleCoefficient()); + visualizer.current?.draw(_getCX(), _getCY(), _getAccentColor() || '#ffffff', _getRadius(), _getScaleCoefficient()); }; const _getRadius = (): number => ((height || props.height || 0) - (PADDING * _getScaleCoefficient()) * 2) / 2; @@ -327,7 +327,7 @@ const Audio: React.FC = (props) => { const _getCY = (): number => Math.floor(_getRadius() + (PADDING * _getScaleCoefficient())); - const _getAccentColor = (): string => accentColor || '#ffffff'; + const _getAccentColor = () => accentColor || undefined; const _getBackgroundColor = (): string => backgroundColor || '#000000'; @@ -493,15 +493,19 @@ const Audio: React.FC = (props) => { /> -
-
+
+
-