From e62944a0df950a1d74131ed90c0c7523592320fa Mon Sep 17 00:00:00 2001 From: meowarex Date: Tue, 30 Dec 2025 14:11:49 +1100 Subject: [PATCH] Fixed HideUI & Removed Animations :( --- plugins/radiant-lyrics-luna/src/index.ts | 12 +++++------- plugins/radiant-lyrics-luna/src/styles.css | 6 +++++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/plugins/radiant-lyrics-luna/src/index.ts b/plugins/radiant-lyrics-luna/src/index.ts index b7af620..328a315 100644 --- a/plugins/radiant-lyrics-luna/src/index.ts +++ b/plugins/radiant-lyrics-luna/src/index.ts @@ -45,19 +45,18 @@ const updateRadiantLyricsTextGlow = function (): void { // Function to update styles when settings change const updateRadiantLyricsStyles = function (): void { + // Handle Player Bar Visibility if (isHidden) { - // Apply optional player bar hiding if (!settings.playerBarVisible) { playerBarStyleTag.css = playerBarHidden; } else { playerBarStyleTag.remove(); } - // Ensure lyrics glow styles are not applied when hidden - lyricsGlowStyleTag.remove(); - return; + } else { + playerBarStyleTag.remove(); } - // Update lyrics glow based on setting (only when UI is visible) + // Update lyrics glow based on setting (Always apply if enabled, even when UI is hidden) const lyricsContainer = document.querySelector('[class^="_lyricsContainer"]'); if (lyricsContainer) { if (settings.lyricsGlowEnabled) { @@ -196,8 +195,7 @@ const toggleRadiantLyrics = function (): void { document.body.classList.remove("radiant-lyrics-ui-hidden"); setTimeout(() => { if (!isHidden) { - lyricsStyleTag.remove(); - playerBarStyleTag.remove(); + updateRadiantLyricsStyles(); } }, 500); updateButtonStates(); diff --git a/plugins/radiant-lyrics-luna/src/styles.css b/plugins/radiant-lyrics-luna/src/styles.css index 24173c6..4a8b728 100644 --- a/plugins/radiant-lyrics-luna/src/styles.css +++ b/plugins/radiant-lyrics-luna/src/styles.css @@ -23,6 +23,10 @@ transition: opacity 0.4s ease-in-out; } +.radiant-lyrics-ui-hidden [class*="tabItems"]:hover { + opacity: 1 !important; +} + /* Immediate hide class for unhide button */ .hide-immediately { opacity: 0 !important; @@ -37,7 +41,7 @@ box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; - color: rgba(255, 255, 255, 0.8) !important; + color: rgba(255, 255, 255, 0.4) !important; transition: background-color 0.8s ease-in-out, border-color 0.8s ease-in-out,