File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
components/livekit/audio-visualizer/audio-bar-visualizer Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ const getSequencerInterval = (
2727 if ( interval ) {
2828 switch ( state ) {
2929 case 'connecting' :
30- // case 'thinking':
3130 interval /= barCount ;
3231 break ;
3332
@@ -54,9 +53,7 @@ export const audioBarVisualizerVariants = cva(['relative flex items-center justi
5453} ) ;
5554
5655export const audioBarVisualizerBarVariants = cva (
57- [
58- 'bg-muted rounded-full transition-colors duration-250 ease-linear data-[lk-highlighted=true]:bg-foreground' ,
59- ] ,
56+ [ ' rounded-full transition-colors duration-250 ease-linear ' ] ,
6057 {
6158 variants : {
6259 size : {
@@ -120,9 +117,13 @@ export function AudioBarVisualizer({
120117 { bands . map ( ( band , idx ) => (
121118 < div
122119 key = { idx }
123- data-lk-bar-index = { idx }
124- data-lk-highlighted = { highlightedIndices . includes ( idx ) }
125- className = { cn ( audioBarVisualizerBarVariants ( { size } ) , barClassName ) }
120+ className = { cn (
121+ audioBarVisualizerBarVariants ( { size } ) ,
122+ highlightedIndices . includes ( idx )
123+ ? 'bg-(--audio-visualizer-active)'
124+ : 'bg-(--audio-visualizer-idle)' ,
125+ barClassName
126+ ) }
126127 style = { { height : `${ band * 100 } %` } }
127128 />
128129 ) ) }
Original file line number Diff line number Diff line change 111111 --color-sidebar-accent-foreground : var (--sidebar-accent-foreground );
112112 --color-sidebar-border : var (--sidebar-border );
113113 --color-sidebar-ring : var (--sidebar-ring );
114+
115+ /* LiveKit UI tokens */
116+ --audio-visualizer-idle : var (--color-muted );
117+ --audio-visualizer-active : var (--color-foreground );
114118}
115119
116120@layer base {
You can’t perform that action at this time.
0 commit comments