mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
Fixed HideUI Button Logic
This commit is contained in:
@@ -53,16 +53,18 @@ const updateCleanViewStyles = function(): void {
|
|||||||
(window as any).updateCleanViewStyles = updateCleanViewStyles;
|
(window as any).updateCleanViewStyles = updateCleanViewStyles;
|
||||||
|
|
||||||
const toggleCleanView = function(): void {
|
const toggleCleanView = function(): void {
|
||||||
|
// Toggle the state first
|
||||||
|
isCleanView = !isCleanView;
|
||||||
|
|
||||||
if (isCleanView) {
|
if (isCleanView) {
|
||||||
|
// Apply clean view styles
|
||||||
|
updateCleanViewStyles();
|
||||||
|
} else {
|
||||||
// Remove all clean view styles
|
// Remove all clean view styles
|
||||||
lyricsStyleTag.css = undefined;
|
lyricsStyleTag.css = undefined;
|
||||||
baseStyleTag.css = undefined;
|
baseStyleTag.css = undefined;
|
||||||
playerBarStyleTag.css = undefined;
|
playerBarStyleTag.css = undefined;
|
||||||
} else {
|
|
||||||
// Apply clean view styles
|
|
||||||
updateCleanViewStyles();
|
|
||||||
}
|
}
|
||||||
isCleanView = !isCleanView;
|
|
||||||
updateButtonStates();
|
updateButtonStates();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user