From c1d97e57c304ae9915ec80a72a51a649e51e8f1f Mon Sep 17 00:00:00 2001 From: James Gentes Date: Fri, 29 Dec 2023 13:38:39 -0800 Subject: [PATCH] light mode working --- app/api/audioEvents.ts | 7 ++++--- app/api/renderWaveform.tsx | 2 +- app/components/layout/DarkModeButton.tsx | 2 +- app/components/layout/Header.tsx | 4 ++-- app/components/layout/LeftNav.tsx | 2 +- app/components/mixes/MixCard.tsx | 4 ++-- app/components/mixes/VolumeMeter.tsx | 2 +- app/components/tracks/Controls.tsx | 23 ++++------------------- app/components/tracks/TrackDrawer.tsx | 3 ++- app/components/tracks/TrackTable.tsx | 3 ++- app/global.css | 12 ------------ app/routes/_index.tsx | 4 +++- tailwind.config.ts | 10 +++++----- 13 files changed, 28 insertions(+), 50 deletions(-) diff --git a/app/api/audioEvents.ts b/app/api/audioEvents.ts index 7baf946..94c3148 100644 --- a/app/api/audioEvents.ts +++ b/app/api/audioEvents.ts @@ -67,13 +67,11 @@ const audioEvents = { // Style scrollbar (this is a workaround for https://github.com/katspaugh/wavesurfer.js/issues/2933) const style = document.createElement('style') style.textContent = `::-webkit-scrollbar { - background: rgba(4, 146, 247, 0.5); height: 18px; } ::-webkit-scrollbar-corner, ::-webkit-scrollbar-track { - border-top: 1px solid rgba(255, 255, 255, 0.15); - background-color: #0a1929; + border-top: 1px solid rgba(128,128,128,.3); } ::-webkit-scrollbar-thumb { @@ -85,6 +83,9 @@ const audioEvents = { }` waveform.getWrapper().appendChild(style) + // add classname value to waveform.getWrapper() + waveform.getWrapper().classList.add('wrapper') + // Update time let [time] = getAudioState[trackId].time() if (!time) { diff --git a/app/api/renderWaveform.tsx b/app/api/renderWaveform.tsx index ea230c8..9c2853b 100644 --- a/app/api/renderWaveform.tsx +++ b/app/api/renderWaveform.tsx @@ -163,7 +163,7 @@ const TrackView = ({ trackId }: { trackId: Track['id'] }) => { const analyzing = analyzingTracks.has(trackId) const containerClass = - 'p-0 border-1 border-divider rounded bg-primary-50 overflow-hidden' + 'p-0 border-1 border-divider rounded bg-default-50 overflow-hidden' return (
{ return ( diff --git a/app/components/layout/Header.tsx b/app/components/layout/Header.tsx index 189348e..f393e8b 100644 --- a/app/components/layout/Header.tsx +++ b/app/components/layout/Header.tsx @@ -5,11 +5,11 @@ import LoginButton from '~/components/layout/LoginButton.client' import Logo from '~/components/layout/MixpointLogo' const Header = () => ( -
+
- +