mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 23:12:13 +00:00
subtitles colors changed in core
This commit is contained in:
parent
61688c9b86
commit
09a85bc3a0
1 changed files with 33 additions and 6 deletions
|
|
@ -83,21 +83,48 @@ const useProfileSettingsInputs = () => {
|
||||||
const subtitlesTextColorInput = React.useMemo(() => ({
|
const subtitlesTextColorInput = React.useMemo(() => ({
|
||||||
value: profile.settings.subtitles_text_color,
|
value: profile.settings.subtitles_text_color,
|
||||||
onChange: (event) => {
|
onChange: (event) => {
|
||||||
console.log(event);
|
core.dispatch({
|
||||||
|
action: 'Ctx',
|
||||||
|
args: {
|
||||||
|
action: 'UpdateSettings',
|
||||||
|
args: {
|
||||||
|
...profile.settings,
|
||||||
|
subtitles_text_color: event.value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}), [profile.settings.subtitles_text_color]);
|
}), [profile.settings]);
|
||||||
const subtitlesBackgroundColorInput = React.useMemo(() => ({
|
const subtitlesBackgroundColorInput = React.useMemo(() => ({
|
||||||
value: profile.settings.subtitles_background_color,
|
value: profile.settings.subtitles_background_color,
|
||||||
onChange: (event) => {
|
onChange: (event) => {
|
||||||
console.log(event);
|
core.dispatch({
|
||||||
|
action: 'Ctx',
|
||||||
|
args: {
|
||||||
|
action: 'UpdateSettings',
|
||||||
|
args: {
|
||||||
|
...profile.settings,
|
||||||
|
subtitles_background_color: event.value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}), [profile.settings.subtitles_background_color]);
|
}), [profile.settings]);
|
||||||
const subtitlesOutlineColorInput = React.useMemo(() => ({
|
const subtitlesOutlineColorInput = React.useMemo(() => ({
|
||||||
value: profile.settings.subtitles_outline_color,
|
value: profile.settings.subtitles_outline_color,
|
||||||
onChange: (event) => {
|
onChange: (event) => {
|
||||||
console.log(event);
|
core.dispatch({
|
||||||
|
action: 'Ctx',
|
||||||
|
args: {
|
||||||
|
action: 'UpdateSettings',
|
||||||
|
args: {
|
||||||
|
...profile.settings,
|
||||||
|
subtitles_outline_color: event.value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}), [profile.settings.subtitles_outline_color]);
|
}), [profile.settings]);
|
||||||
const bingeWatchingCheckbox = React.useMemo(() => ({
|
const bingeWatchingCheckbox = React.useMemo(() => ({
|
||||||
checked: profile.settings.binge_watching,
|
checked: profile.settings.binge_watching,
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue