diff --git a/web/src/components/About.jsx b/web/src/components/About.jsx index 64afa40..2b6b0aa 100644 --- a/web/src/components/About.jsx +++ b/web/src/components/About.jsx @@ -11,6 +11,8 @@ import ListItemIcon from '@material-ui/core/ListItemIcon' import ListItemText from '@material-ui/core/ListItemText' import { useTranslation } from 'react-i18next' import { echoHost } from 'utils/Hosts' +import { ThemeProvider } from '@material-ui/core/styles' +import { lightTheme } from 'components/App' export default function AboutDialog() { const { t } = useTranslation() @@ -29,59 +31,55 @@ export default function AboutDialog() { - setOpen(false)} - aria-labelledby='form-dialog-title' - fullWidth - maxWidth='sm' - > - {t('About')} + + setOpen(false)} aria-labelledby='form-dialog-title' fullWidth maxWidth='sm'> + {t('About')} - -
-

TorrServer {torrServerVersion}

- - https://github.com/YouROK/TorrServer - -
-

{t('ThanksToEveryone')}

+

TorrServer {torrServerVersion}

+ + https://github.com/YouROK/TorrServer +
-
-

{t('SpecialThanks')}

- anacrolix Matt Joiner  - - github.com/anacrolix - -
- nikk  - - github.com/tsynik - -
- dancheskus  - - github.com/dancheskus - -
- tw1cker Руслан Пахнев  - - github.com/Nemiroff - -
- SpAwN_LMG -
+ +
+

{t('ThanksToEveryone')}

+
+
+

{t('SpecialThanks')}

+ anacrolix Matt Joiner  + + github.com/anacrolix + +
+ nikk  + + github.com/tsynik + +
+ dancheskus  + + github.com/dancheskus + +
+ tw1cker Руслан Пахнев  + + github.com/Nemiroff + +
+ SpAwN_LMG +
+
-
- - - -
+ + + +
+ ) } diff --git a/web/src/components/Add/AddDialog.jsx b/web/src/components/Add/AddDialog.jsx index 2e0c460..71d0e96 100644 --- a/web/src/components/Add/AddDialog.jsx +++ b/web/src/components/Add/AddDialog.jsx @@ -270,7 +270,11 @@ export default function AddDialog({ onClick={handleSave} color='primary' > - {isLoadingButton ? : t(isEditMode ? 'Save' : 'Add')} + {isLoadingButton ? ( + + ) : ( + t(isEditMode ? 'Save' : 'Add' ) + )} diff --git a/web/src/components/App/index.jsx b/web/src/components/App/index.jsx index 665b0e3..a4fdb1a 100644 --- a/web/src/components/App/index.jsx +++ b/web/src/components/App/index.jsx @@ -30,7 +30,7 @@ export const lightTheme = createMuiTheme({ palette: { type: 'light', primary: { main: '#00a572' }, - background: { paper: '#cbe8d9' }, + background: { paper: '#f1f1f1' }, }, typography: { fontFamily: 'Open Sans, sans-serif' }, }) @@ -92,7 +92,7 @@ export default function App() { - + {isDonationDialogOpen && setIsDonationDialogOpen(false)} />} {!JSON.parse(localStorage.getItem('snackbarIsClosed')) && } diff --git a/web/src/components/CloseServer.jsx b/web/src/components/CloseServer.jsx index 004f29a..eefa178 100644 --- a/web/src/components/CloseServer.jsx +++ b/web/src/components/CloseServer.jsx @@ -3,6 +3,8 @@ import { Button, Dialog, DialogActions, DialogTitle, ListItem, ListItemIcon, Lis import { PowerSettingsNew as PowerSettingsNewIcon } from '@material-ui/icons' import { shutdownHost } from 'utils/Hosts' import { useTranslation } from 'react-i18next' +import { ThemeProvider } from '@material-ui/core/styles' +import { lightTheme } from 'components/App' export default function CloseServer() { const { t } = useTranslation() @@ -20,26 +22,28 @@ export default function CloseServer() { - - {t('CloseServer?')} - - + + + {t('CloseServer?')} + + - - - + + + + ) } diff --git a/web/src/components/RemoveAll.jsx b/web/src/components/RemoveAll.jsx index be9c719..f9b90d5 100644 --- a/web/src/components/RemoveAll.jsx +++ b/web/src/components/RemoveAll.jsx @@ -6,6 +6,8 @@ import DeleteIcon from '@material-ui/icons/Delete' import { useState } from 'react' import { torrentsHost } from 'utils/Hosts' import { useTranslation } from 'react-i18next' +import { ThemeProvider } from '@material-ui/core/styles' +import { lightTheme } from 'components/App' const fnRemoveAll = () => { fetch(torrentsHost(), { @@ -46,26 +48,28 @@ export default function RemoveAll() { - - {t('DeleteTorrents?')} - - + + + {t('DeleteTorrents?')} + + - - - + + + + ) } diff --git a/web/src/components/Settings.jsx b/web/src/components/Settings.jsx index 3e5cb5c..d84a0aa 100644 --- a/web/src/components/Settings.jsx +++ b/web/src/components/Settings.jsx @@ -13,6 +13,8 @@ import Button from '@material-ui/core/Button' import { FormControlLabel, InputLabel, Select, Switch } from '@material-ui/core' import { settingsHost, setTorrServerHost, getTorrServerHost } from 'utils/Hosts' import { useTranslation } from 'react-i18next' +import { ThemeProvider } from '@material-ui/core/styles' +import { lightTheme } from 'components/App' export default function SettingsDialog() { const { t } = useTranslation() @@ -100,193 +102,195 @@ export default function SettingsDialog() { - - {t('Settings')} - - - {show && ( - <> - -
- -
- } - label={t('PreloadBuffer')} - /> -
- } - label={t('UseDisk')} - /> -
- {t('UseDiskDesc')} -
- - } - label={t('RemoveCacheOnDrop')} - /> -
- {t('RemoveCacheOnDropDesc')} -
- -
- } - label={t('EnableIPv6')} - /> -
- } - label={t('TCP')} - /> -
- } - label={t('UTP')} - /> -
- } - label={t('PEX')} - /> -
- } - label={t('ForceEncrypt')} - /> -
- -
- -
- } - label={t('DHT')} - /> -
- -
- -
- } - label={t('Upload')} - /> -
- -
- -
- } - label={t('UPNP')} - /> -
- {t('RetrackersMode')} - -
- - )} -
+ + + {t('Settings')} + + + {show && ( + <> + +
+ +
+ } + label={t('PreloadBuffer')} + /> +
+ } + label={t('UseDisk')} + /> +
+ {t('UseDiskDesc')} +
+ + } + label={t('RemoveCacheOnDrop')} + /> +
+ {t('RemoveCacheOnDropDesc')} +
+ +
+ } + label={t('EnableIPv6')} + /> +
+ } + label={t('TCP')} + /> +
+ } + label={t('UTP')} + /> +
+ } + label={t('PEX')} + /> +
+ } + label={t('ForceEncrypt')} + /> +
+ +
+ +
+ } + label={t('DHT')} + /> +
+ +
+ +
+ } + label={t('Upload')} + /> +
+ +
+ +
+ } + label={t('UPNP')} + /> +
+ {t('RetrackersMode')} + +
+ + )} +
- - + + - - -
+ + +
+ ) }