mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-20 14:06:09 +05:00
added dark theme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useTheme } from '@material-ui/core'
|
||||
import { useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { mainColors } from 'style/colors'
|
||||
|
||||
import AddDialog from '../Add/AddDialog'
|
||||
import IconWrapper from './style'
|
||||
@@ -10,6 +10,7 @@ export default function AddFirstTorrent() {
|
||||
const [isDialogOpen, setIsDialogOpen] = useState(false)
|
||||
const handleClickOpen = () => setIsDialogOpen(true)
|
||||
const handleClose = () => setIsDialogOpen(false)
|
||||
const primary = useTheme().palette.primary.main
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -17,7 +18,7 @@ export default function AddFirstTorrent() {
|
||||
<lord-icon
|
||||
src='https://cdn.lordicon.com/bbnkwdur.json'
|
||||
trigger='loop'
|
||||
colors={`primary:#121331,secondary:${mainColors.primary}`}
|
||||
colors={`primary:#121331,secondary:${primary}`}
|
||||
stroke='26'
|
||||
scale='60'
|
||||
/>
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
import { useTheme } from '@material-ui/core'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { mainColors } from 'style/colors'
|
||||
|
||||
import IconWrapper from './style'
|
||||
|
||||
export default function NoServerConnection() {
|
||||
const { t } = useTranslation()
|
||||
const primary = useTheme().palette.primary.main
|
||||
|
||||
return (
|
||||
<IconWrapper>
|
||||
<lord-icon
|
||||
src='https://cdn.lordicon.com/wrprwmwt.json'
|
||||
trigger='loop'
|
||||
colors={`primary:#121331,secondary:${mainColors.primary}`}
|
||||
colors={`primary:#121331,secondary:${primary}`}
|
||||
stroke='26'
|
||||
scale='60'
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user