mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
Fixed HideUI & Removed Animations :(
This commit is contained in:
@@ -45,19 +45,18 @@ const updateRadiantLyricsTextGlow = function (): void {
|
|||||||
|
|
||||||
// Function to update styles when settings change
|
// Function to update styles when settings change
|
||||||
const updateRadiantLyricsStyles = function (): void {
|
const updateRadiantLyricsStyles = function (): void {
|
||||||
|
// Handle Player Bar Visibility
|
||||||
if (isHidden) {
|
if (isHidden) {
|
||||||
// Apply optional player bar hiding
|
|
||||||
if (!settings.playerBarVisible) {
|
if (!settings.playerBarVisible) {
|
||||||
playerBarStyleTag.css = playerBarHidden;
|
playerBarStyleTag.css = playerBarHidden;
|
||||||
} else {
|
} else {
|
||||||
playerBarStyleTag.remove();
|
playerBarStyleTag.remove();
|
||||||
}
|
}
|
||||||
// Ensure lyrics glow styles are not applied when hidden
|
} else {
|
||||||
lyricsGlowStyleTag.remove();
|
playerBarStyleTag.remove();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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"]');
|
const lyricsContainer = document.querySelector('[class^="_lyricsContainer"]');
|
||||||
if (lyricsContainer) {
|
if (lyricsContainer) {
|
||||||
if (settings.lyricsGlowEnabled) {
|
if (settings.lyricsGlowEnabled) {
|
||||||
@@ -196,8 +195,7 @@ const toggleRadiantLyrics = function (): void {
|
|||||||
document.body.classList.remove("radiant-lyrics-ui-hidden");
|
document.body.classList.remove("radiant-lyrics-ui-hidden");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!isHidden) {
|
if (!isHidden) {
|
||||||
lyricsStyleTag.remove();
|
updateRadiantLyricsStyles();
|
||||||
playerBarStyleTag.remove();
|
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
updateButtonStates();
|
updateButtonStates();
|
||||||
|
|||||||
@@ -23,6 +23,10 @@
|
|||||||
transition: opacity 0.4s ease-in-out;
|
transition: opacity 0.4s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.radiant-lyrics-ui-hidden [class*="tabItems"]:hover {
|
||||||
|
opacity: 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Immediate hide class for unhide button */
|
/* Immediate hide class for unhide button */
|
||||||
.hide-immediately {
|
.hide-immediately {
|
||||||
opacity: 0 !important;
|
opacity: 0 !important;
|
||||||
@@ -37,7 +41,7 @@
|
|||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
backdrop-filter: none !important;
|
backdrop-filter: none !important;
|
||||||
-webkit-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:
|
transition:
|
||||||
background-color 0.8s ease-in-out,
|
background-color 0.8s ease-in-out,
|
||||||
border-color 0.8s ease-in-out,
|
border-color 0.8s ease-in-out,
|
||||||
|
|||||||
Reference in New Issue
Block a user