added dark theme

This commit is contained in:
Daniel Shleifman
2021-06-26 21:31:43 +03:00
parent d5458a112e
commit 72ff729ee8
24 changed files with 950 additions and 587 deletions

View File

@@ -11,13 +11,10 @@ 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 { mainColors } from 'style/colors'
import { ThemeProvider, useTheme } from '@material-ui/core/styles'
import { lightTheme } from '../style/materialUISetup'
const { primary } = mainColors
export default function AboutDialog() {
const { t } = useTranslation()
const [open, setOpen] = useState(false)
@@ -26,6 +23,8 @@ export default function AboutDialog() {
axios.get(echoHost()).then(({ data }) => setTorrServerVersion(data))
}, [])
const primary = useTheme().palette.primary.main
return (
<div>
<ListItem button key='Settings' onClick={() => setOpen(true)}>