mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
use switch for Pro-mode
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import Button from '@material-ui/core/Button'
|
import Button from '@material-ui/core/Button'
|
||||||
import Checkbox from '@material-ui/core/Checkbox'
|
import Switch from '@material-ui/core/Switch'
|
||||||
import { FormControlLabel, useMediaQuery, useTheme } from '@material-ui/core'
|
import { FormControlLabel, useMediaQuery, useTheme } from '@material-ui/core'
|
||||||
import { settingsHost } from 'utils/Hosts'
|
import { settingsHost } from 'utils/Hosts'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
@@ -94,7 +94,7 @@ export default function SettingsDialog({ handleClose }) {
|
|||||||
<div>{t('SettingsDialog.Settings')}</div>
|
<div>{t('SettingsDialog.Settings')}</div>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Switch
|
||||||
checked={isProMode}
|
checked={isProMode}
|
||||||
onChange={({ target: { checked } }) => {
|
onChange={({ target: { checked } }) => {
|
||||||
setIsProMode(checked)
|
setIsProMode(checked)
|
||||||
@@ -105,6 +105,7 @@ export default function SettingsDialog({ handleClose }) {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label={t('SettingsDialog.ProMode')}
|
label={t('SettingsDialog.ProMode')}
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
</SettingsHeader>
|
</SettingsHeader>
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,11 @@ export const useMaterialUITheme = () => {
|
|||||||
secondary: { main: mainColors[theme].secondary },
|
secondary: { main: mainColors[theme].secondary },
|
||||||
},
|
},
|
||||||
overrides: {
|
overrides: {
|
||||||
|
MuiTypography: {
|
||||||
|
h6: {
|
||||||
|
fontSize: '1.2rem',
|
||||||
|
},
|
||||||
|
},
|
||||||
MuiInputBase: {
|
MuiInputBase: {
|
||||||
input: {
|
input: {
|
||||||
color: mainColors[theme].labels,
|
color: mainColors[theme].labels,
|
||||||
|
|||||||
Reference in New Issue
Block a user