mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
feat(lyrics): non-active lyric settings (#1954)
* feat: non-active lyric settings
This commit is contained in:
@@ -17,6 +17,7 @@ import { MultiSelect } from '/@/shared/components/multi-select/multi-select';
|
||||
import { NumberInput } from '/@/shared/components/number-input/number-input';
|
||||
import { SegmentedControl } from '/@/shared/components/segmented-control/segmented-control';
|
||||
import { Select } from '/@/shared/components/select/select';
|
||||
import { Slider } from '/@/shared/components/slider/slider';
|
||||
import { Stack } from '/@/shared/components/stack/stack';
|
||||
import { Switch } from '/@/shared/components/switch/switch';
|
||||
import { TextInput } from '/@/shared/components/text-input/text-input';
|
||||
@@ -185,6 +186,48 @@ export const LyricsSettingsForm = ({ settingsKey }: LyricsSettingsFormProps) =>
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
<Slider
|
||||
defaultValue={displaySettings.opacityNonActive}
|
||||
label={(e) => (e * 100).toFixed(0) + '%'}
|
||||
max={1.0}
|
||||
min={0.0}
|
||||
onChangeEnd={(e) => {
|
||||
updateDisplaySetting({
|
||||
opacityNonActive: e,
|
||||
});
|
||||
}}
|
||||
step={0.01}
|
||||
w={100}
|
||||
/>
|
||||
),
|
||||
description: '',
|
||||
title: t(`${t('page.fullscreenPlayer.config.lyricOpacityNonActive')}`, {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
<Slider
|
||||
defaultValue={displaySettings.scaleNonActive}
|
||||
label={(e) => (e * 100).toFixed(0) + '%'}
|
||||
max={1.0}
|
||||
min={0.5}
|
||||
onChangeEnd={(e) => {
|
||||
updateDisplaySetting({
|
||||
scaleNonActive: e,
|
||||
});
|
||||
}}
|
||||
step={0.01}
|
||||
w={100}
|
||||
/>
|
||||
),
|
||||
description: '',
|
||||
title: t(`${t('page.fullscreenPlayer.config.lyricScaleNonActive')}`, {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
<Switch
|
||||
|
||||
Reference in New Issue
Block a user