mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-10-15 07:53:13 +11:00
Fixed HideUI Button Logic
This commit is contained in:
1 parent
6aa8fd70e4
commit
1f6713ae0e
1 file changed
+6
-4
@@ -53,16 +53,18 @@ const updateCleanViewStyles = function(): void {
|
||||
(window as any).updateCleanViewStyles = updateCleanViewStyles;
|
||||
|
||||
const toggleCleanView = function(): void {
|
||||
// Toggle the state first
|
||||
isCleanView = !isCleanView;
|
||||
|
||||
if (isCleanView) {
|
||||
// Apply clean view styles
|
||||
updateCleanViewStyles();
|
||||
} else {
|
||||
// Remove all clean view styles
|
||||
lyricsStyleTag.css = undefined;
|
||||
baseStyleTag.css = undefined;
|
||||
playerBarStyleTag.css = undefined;
|
||||
} else {
|
||||
// Apply clean view styles
|
||||
updateCleanViewStyles();
|
||||
}
|
||||
isCleanView = !isCleanView;
|
||||
updateButtonStates();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user