From 4566df697ccf1786f89317a153671713387bfea6 Mon Sep 17 00:00:00 2001 From: Boof2015 <75185879+Boof2015@users.noreply.github.com> Date: Fri, 15 May 2026 16:03:15 -0400 Subject: [PATCH] improve now playing module --- src/renderer/components/AstraScopeModule.tsx | 246 ++++++++++--------- src/renderer/styles/globals.css | 106 ++++++-- 2 files changed, 214 insertions(+), 138 deletions(-) diff --git a/src/renderer/components/AstraScopeModule.tsx b/src/renderer/components/AstraScopeModule.tsx index 95cfb96..c3457f8 100644 --- a/src/renderer/components/AstraScopeModule.tsx +++ b/src/renderer/components/AstraScopeModule.tsx @@ -298,9 +298,19 @@ export default function AstraScopeModule({ const toggleCommand = snapshot?.playbackState === 'playing' ? 'pause' : 'play' const toggleLabel = snapshot?.playbackState === 'playing' ? 'Pause' : 'Play' - const cardClassName = settings.showCoverArt - ? 'astra-scope__card' - : 'astra-scope__card astra-scope__card--no-cover' + const toggleIcon = snapshot?.playbackState === 'playing' ? '\u23F8' : '\u25B6' + const shouldShowMeta = settings.showTitle || (settings.showArtist && Boolean(detailMessage)) + const shouldShowTransport = settings.showProgress || settings.showTime + const shouldShowBody = shouldShowMeta + || shouldShowTransport + || settings.showControls + || Boolean(errorMessage) + const isCoverArtOnly = settings.showCoverArt && !shouldShowBody + const cardClassName = [ + 'astra-scope__card', + !settings.showCoverArt ? 'astra-scope__card--no-cover' : '', + isCoverArtOnly ? 'astra-scope__card--cover-only' : '', + ].filter(Boolean).join(' ') return (