mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-06-18 03:43:10 +10:00
Fix Song Change Issue
This commit is contained in:
@@ -8,7 +8,7 @@ export const settings = await ReactiveStore.getPluginStorage("RadiantLyrics", {
|
||||
lyricsGlowEnabled: true,
|
||||
spinningCoverEverywhere: false,
|
||||
performanceMode: false,
|
||||
noSpinningArt: false,
|
||||
spinningArtEnabled: true,
|
||||
backgroundContrast: 120,
|
||||
backgroundBlur: 80,
|
||||
backgroundBrightness: 40,
|
||||
@@ -22,7 +22,7 @@ export const Settings = () => {
|
||||
const [lyricsGlowEnabled, setLyricsGlowEnabled] = React.useState(settings.lyricsGlowEnabled);
|
||||
const [spinningCoverEverywhere, setSpinningCoverEverywhere] = React.useState(settings.spinningCoverEverywhere);
|
||||
const [performanceMode, setPerformanceMode] = React.useState(settings.performanceMode);
|
||||
const [noSpinningArt, setNoSpinningArt] = React.useState(settings.noSpinningArt);
|
||||
const [spinningArtEnabled, setSpinningArtEnabled] = React.useState(settings.spinningArtEnabled);
|
||||
const [backgroundContrast, setBackgroundContrast] = React.useState(settings.backgroundContrast);
|
||||
const [backgroundBlur, setBackgroundBlur] = React.useState(settings.backgroundBlur);
|
||||
const [backgroundBrightness, setBackgroundBrightness] = React.useState(settings.backgroundBrightness);
|
||||
@@ -79,7 +79,7 @@ export const Settings = () => {
|
||||
/>
|
||||
<LunaSwitchSetting
|
||||
title="Performance Mode"
|
||||
desc="Performance mode: Reduces blur effects (max 20px), uses smaller image sizes, and optimizes GPU usage while keeping spinning animations"
|
||||
desc="Performance mode: Reduces blur effects (20px), uses smaller image sizes, to optimize GPU usage"
|
||||
checked={performanceMode}
|
||||
onChange={(_, checked: boolean) => {
|
||||
console.log("Performance Mode:", checked ? "enabled" : "disabled");
|
||||
@@ -94,12 +94,12 @@ export const Settings = () => {
|
||||
}}
|
||||
/>
|
||||
<LunaSwitchSetting
|
||||
title="Disable Spinning Art"
|
||||
title="Disable Cover Spin" // Cheers @Max/n0201 for the idea <3
|
||||
desc="Disable the spinning cover art background animation"
|
||||
checked={noSpinningArt}
|
||||
checked={!spinningArtEnabled}
|
||||
onChange={(_, checked: boolean) => {
|
||||
console.log("No Spinning Art:", checked ? "enabled" : "disabled");
|
||||
setNoSpinningArt((settings.noSpinningArt = checked));
|
||||
console.log("Disable Cover Spin:", checked ? "enabled" : "disabled");
|
||||
setSpinningArtEnabled((settings.spinningArtEnabled = !checked));
|
||||
if ((window as any).updateRadiantLyricsGlobalBackground) {
|
||||
(window as any).updateRadiantLyricsGlobalBackground();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user