1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

New: Native Theme Engine

Co-Authored-By: Zak Saunders <thezak48@users.noreply.github.com>
This commit is contained in:
Qstick
2021-11-20 17:15:30 -06:00
committed by Mark McDowall
parent e1de523c89
commit 2291f3e00e
139 changed files with 849 additions and 456 deletions
+17
View File
@@ -10,6 +10,8 @@ import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormLabel from 'Components/Form/FormLabel';
import FormInputGroup from 'Components/Form/FormInputGroup';
import themes from 'Styles/Themes';
import titleCase from 'Utilities/String/titleCase';
export const firstDayOfWeekOptions = [
{ key: 0, value: 'Sunday' },
@@ -58,6 +60,9 @@ class UISettings extends Component {
...otherProps
} = this.props;
const themeOptions = Object.keys(themes)
.map((theme) => ({ key: theme, value: titleCase(theme) }));
return (
<PageContent title="UI Settings">
<SettingsToolbarConnector
@@ -163,6 +168,18 @@ class UISettings extends Component {
<FieldSet
legend="Style"
>
<FormGroup>
<FormLabel>Theme</FormLabel>
<FormInputGroup
type={inputTypes.SELECT}
name="theme"
helpText="Change Application UI Theme, Inspired by Theme.Park"
values={themeOptions}
onChange={onInputChange}
{...settings.theme}
/>
</FormGroup>
<FormGroup>
<FormLabel>Enable Color-Impaired Mode</FormLabel>
<FormInputGroup