From bfb8cc02745862b437c157e1c8afea1e11068526 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sun, 24 May 2026 01:45:39 +0200 Subject: [PATCH] fix: player dropdown light-mode visibility --- static/player/mode.ts | 4 ++-- templates/components/video_player.gohtml | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/player/mode.ts b/static/player/mode.ts index 7a6e201..99e069d 100644 --- a/static/player/mode.ts +++ b/static/player/mode.ts @@ -48,13 +48,13 @@ export const updateModeButtons = (): void => { const m = state.currentMode; dub?.classList.toggle('text-accent', m === 'dub'); - dub?.classList.toggle('text-white', m !== 'dub'); + dub?.classList.toggle('text-foreground', m !== 'dub'); dub?.classList.toggle('opacity-50', !state.availableModes.includes('dub')); dub?.classList.toggle('cursor-not-allowed', !state.availableModes.includes('dub')); dub && (dub.disabled = !state.availableModes.includes('dub')); sub?.classList.toggle('text-accent', m === 'sub'); - sub?.classList.toggle('text-white', m !== 'sub'); + sub?.classList.toggle('text-foreground', m !== 'sub'); sub?.classList.toggle('opacity-50', !state.availableModes.includes('sub')); sub?.classList.toggle('cursor-not-allowed', !state.availableModes.includes('sub')); sub && (sub.disabled = !state.availableModes.includes('sub')); diff --git a/templates/components/video_player.gohtml b/templates/components/video_player.gohtml index b05a3ab..9259f0f 100644 --- a/templates/components/video_player.gohtml +++ b/templates/components/video_player.gohtml @@ -76,27 +76,27 @@