add visualizer to sidebar

This commit is contained in:
jeffvli
2025-11-30 18:14:05 -08:00
parent 0b8ae55150
commit c7bf0d8fb8
7 changed files with 158 additions and 37 deletions
@@ -43,27 +43,6 @@ export const LyricSettings = () => {
}),
title: t('setting.followLyric', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch
aria-label="Show lyrics in attached play queue"
defaultChecked={settings.showLyricsInSidebar}
onChange={(e) => {
setSettings({
lyrics: {
...settings,
showLyricsInSidebar: e.currentTarget.checked,
},
});
}}
/>
),
description: t('setting.showLyricsInSidebar', {
context: 'description',
postProcess: 'sentenceCase',
}),
title: t('setting.showLyricsInSidebar', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch
@@ -59,6 +59,48 @@ export const SidebarSettings = () => {
}),
title: t('setting.sidebarCollapsedNavigation', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch
aria-label="Show lyrics in attached play queue"
defaultChecked={settings.showLyricsInSidebar}
onChange={(e) => {
setSettings({
general: {
...settings,
showLyricsInSidebar: e.currentTarget.checked,
},
});
}}
/>
),
description: t('setting.showLyricsInSidebar', {
context: 'description',
postProcess: 'sentenceCase',
}),
title: t('setting.showLyricsInSidebar', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch
aria-label="Show visualizer in sidebar"
defaultChecked={settings.showVisualizerInSidebar}
onChange={(e) => {
setSettings({
general: {
...settings,
showVisualizerInSidebar: e.currentTarget.checked,
},
});
}}
/>
),
description: t('setting.showVisualizerInSidebar', {
context: 'description',
postProcess: 'sentenceCase',
}),
title: t('setting.showVisualizerInSidebar', { postProcess: 'sentenceCase' }),
},
];
return (