mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
move paperColor to themeColors
This commit is contained in:
@@ -7,6 +7,7 @@ export const themeColors = {
|
|||||||
appSecondaryColor: '#cbe8d9',
|
appSecondaryColor: '#cbe8d9',
|
||||||
sidebarBGColor: '#575757',
|
sidebarBGColor: '#575757',
|
||||||
sidebarFillColor: '#dee3e5',
|
sidebarFillColor: '#dee3e5',
|
||||||
|
paperColor: '#eeeeee',
|
||||||
},
|
},
|
||||||
torrentCard: {
|
torrentCard: {
|
||||||
accentCardColor: '#337a57',
|
accentCardColor: '#337a57',
|
||||||
@@ -58,6 +59,7 @@ export const themeColors = {
|
|||||||
appSecondaryColor: '#545a5e',
|
appSecondaryColor: '#545a5e',
|
||||||
sidebarBGColor: '#323637',
|
sidebarBGColor: '#323637',
|
||||||
sidebarFillColor: '#dee3e5',
|
sidebarFillColor: '#dee3e5',
|
||||||
|
paperColor: '#323637',
|
||||||
},
|
},
|
||||||
torrentCard: {
|
torrentCard: {
|
||||||
accentCardColor: '#323637',
|
accentCardColor: '#323637',
|
||||||
@@ -110,12 +112,10 @@ export const mainColors = {
|
|||||||
primary: '#00a572',
|
primary: '#00a572',
|
||||||
secondary: '#00a572',
|
secondary: '#00a572',
|
||||||
labels: rgba('#000', 0.9),
|
labels: rgba('#000', 0.9),
|
||||||
paperColor: '#eeeeee',
|
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
primary: '#323637',
|
primary: '#323637',
|
||||||
secondary: '#dee3e5',
|
secondary: '#dee3e5',
|
||||||
labels: rgba('#fff', 0.9),
|
labels: rgba('#fff', 0.9),
|
||||||
paperColor: '#323637',
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { createTheme, useMediaQuery } from '@material-ui/core'
|
import { createTheme, useMediaQuery } from '@material-ui/core'
|
||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useEffect, useMemo, useState } from 'react'
|
||||||
|
|
||||||
import { mainColors } from './colors'
|
import { mainColors, themeColors } from './colors'
|
||||||
|
|
||||||
export const THEME_MODES = { LIGHT: 'light', DARK: 'dark', AUTO: 'auto' }
|
export const THEME_MODES = { LIGHT: 'light', DARK: 'dark', AUTO: 'auto' }
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ export const useMaterialUITheme = () => {
|
|||||||
},
|
},
|
||||||
MuiPaper: {
|
MuiPaper: {
|
||||||
root: {
|
root: {
|
||||||
backgroundColor: mainColors[theme].paperColor,
|
backgroundColor: themeColors[theme].app.paperColor,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MuiInputBase: {
|
MuiInputBase: {
|
||||||
|
|||||||
Reference in New Issue
Block a user