diff --git a/packages/semi-foundation/audioPlayer/audioPlayer.scss b/packages/semi-foundation/audioPlayer/audioPlayer.scss index 35cbb80dc9..9a0198614f 100644 --- a/packages/semi-foundation/audioPlayer/audioPlayer.scss +++ b/packages/semi-foundation/audioPlayer/audioPlayer.scss @@ -50,6 +50,7 @@ $module: #{$prefix}-audio-player; &-info-title { font-size: $font-size-audio-player-text; color: $color-audio-player-font-color; + font-weight: 600; display: flex; align-items: center; } @@ -160,6 +161,10 @@ $module: #{$prefix}-audio-player; background: $color-audio-player-slider-bg; border-radius: $border-radius-audio-player-slider; position: relative; + + &-light { + background: $color-audio-player-slider-bg-light; + } &-wrapper { position: relative; diff --git a/packages/semi-foundation/audioPlayer/variables.scss b/packages/semi-foundation/audioPlayer/variables.scss index d05ecf4431..c4842a9935 100644 --- a/packages/semi-foundation/audioPlayer/variables.scss +++ b/packages/semi-foundation/audioPlayer/variables.scss @@ -42,7 +42,8 @@ $size-audio-player-slider-dot: 16px; // Colors $color-audio-player-disabled-bg: rgba(var(--semi-grey-0), .35); -$color-audio-player-slider-bg: rgba(var(--semi-grey-1), 1); +$color-audio-player-slider-bg: rgba(var(--semi-grey-5), 1); +$color-audio-player-slider-bg-light: rgba(var(--semi-grey-2), 1); $color-audio-player-slider-progress: rgba(var(--semi-blue-4), 1); $color-audio-player-slider-dot-bg: rgba(var(--semi-white), 1); diff --git a/packages/semi-ui/audioPlayer/audioSlider.tsx b/packages/semi-ui/audioPlayer/audioSlider.tsx index 1591fdaf90..fcc423c456 100644 --- a/packages/semi-ui/audioPlayer/audioSlider.tsx +++ b/packages/semi-ui/audioPlayer/audioSlider.tsx @@ -5,6 +5,7 @@ import { cssClasses } from '@douyinfe/semi-foundation/audioPlayer/constants'; import Tooltip from '../tooltip'; import { formatTime } from './utils'; import { noop } from 'lodash'; +import { AudioPlayerTheme } from './index'; interface AudioSliderProps { value: number; @@ -15,7 +16,8 @@ interface AudioSliderProps { width?: number; height?: number; showTooltip?: boolean; - disabled?: boolean + disabled?: boolean; + theme?: AudioPlayerTheme } interface AudioSliderState { @@ -34,6 +36,7 @@ export default class AudioSlider extends React.Component; @@ -101,7 +104,7 @@ export default class AudioSlider extends React.Component
{ const transparentStyle = { background: 'transparent', }; + const playStyle = { + marginLeft: '1px', + }; return
{isAudioUrlArray &&