mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
• Removed all references to 'SetAlbumArtSize()'
• Added progress info to Simple theme
This commit is contained in:
@@ -77,7 +77,7 @@ async function ChangeTrack(mediaProps, accentColorPalette) {
|
||||
|
||||
// Apply a tint: Use 30% opacity of the accent color + a dark overlay for contrast
|
||||
// 'rgba(0,0,0,0.6)' ensures the text stays readable
|
||||
backgroundTransitionLayer.style.backgroundColor = aaccentColorPalette.DarkMuted + "80"; // 80 is 50% opacity in hex
|
||||
backgroundTransitionLayer.style.backgroundColor = accentColorPalette.DarkMuted + "80"; // 80 is 50% opacity in hex
|
||||
|
||||
SetVisibility(true); // Show the overlay for a few seconds if autoHide is enabled
|
||||
}, 250);
|
||||
@@ -99,14 +99,4 @@ function SetProgressInfo(timelineProps, currentPositionMs, accentColorPalette) {
|
||||
progressPercent = Math.min(100, Math.max(0, progressPercent));
|
||||
progressBarFill.style.width = `${progressPercent}%`;
|
||||
progressBarFill.style.setProperty('--accent-color', accentColorPalette.LightVibrant);
|
||||
}
|
||||
|
||||
function SetAlbumArtSize() {
|
||||
const height = songInfoContainer.offsetHeight;
|
||||
albumArtContainer.style.height = `${height}px`;
|
||||
albumArtContainer.style.width = `${height}px`;
|
||||
}
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
SetAlbumArtSize();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user