From f075fed2363fdb1cfc2367c192503eb8a022ecb3 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Tue, 1 Apr 2025 22:30:10 -0400 Subject: [PATCH] SpotifyControls: make panel look more in line with visual refresh (#3312) --- .../spotifyControls/PlayerComponent.tsx | 9 ++- src/plugins/spotifyControls/index.tsx | 2 +- src/plugins/spotifyControls/spotifyStyles.css | 4 +- .../visualRefreshSpotifyStyles.css | 77 +++++++++++++++++++ 4 files changed, 86 insertions(+), 6 deletions(-) create mode 100644 src/plugins/spotifyControls/visualRefreshSpotifyStyles.css diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx index 6a91bb8fe..4184931fb 100644 --- a/src/plugins/spotifyControls/PlayerComponent.tsx +++ b/src/plugins/spotifyControls/PlayerComponent.tsx @@ -17,6 +17,7 @@ */ import "./spotifyStyles.css"; +import "./visualRefreshSpotifyStyles.css"; // TODO: merge with spotifyStyles.css and remove when old UI is discontinued import { Settings } from "@api/Settings"; import { classNameFactory } from "@api/Styles"; @@ -307,8 +308,8 @@ function Info({ track }: { track: Track; }) { {track.name} {track.artists.some(a => a.name) && ( - - by  + + by  {track.artists.map((a, i) => ( )} {track.album.name && ( - - on  + + on  [class^="slider"] { + flex-grow: 1; + width: 100%; + padding: 0 !important; + } + + #vc-spotify-progress-bar > [class^="slider"] [class^="bar"] { + height: 3px !important; + top: calc(12px - 4px / 2 + var(--bar-offset)); + } + + #vc-spotify-progress-bar > [class^="slider"] [class^="barFill"] { + background-color: var(--interactive-active); + } + + #vc-spotify-progress-bar > [class^="slider"]:hover [class^="barFill"] { + background-color: var(--vc-spotify-green); + } + + #vc-spotify-progress-bar > [class^="slider"] [class^="grabber"] { + background-color: var(--interactive-active); + width: 16px !important; + height: 16px !important; + margin-top: calc(17px/-2 + var(--bar-offset)/2); + margin-left: -0.5px; + } + + .vc-spotify-progress-time { + margin-top: 8px; + font-family: var(--font-code); + } + + .vc-spotify-button-row { + margin-top: 14px; + } + + .vc-spotify-button { + margin: 0 2px; + border-radius: var(--radius-sm); + } + + .vc-spotify-repeat-context, .vc-spotify-repeat-track, .vc-spotify-shuffle-on { + background-color: var(--vc-spotify-green-90); + } + + .vc-spotify-repeat-context:hover, .vc-spotify-repeat-track:hover, .vc-spotify-shuffle-on:hover { + background-color: var(--vc-spotify-green-80); + } +}