move paperColor to themeColors

This commit is contained in:
nikk gitanes
2023-03-29 02:39:02 +03:00
parent 324efe0370
commit 817fab1f1f
2 changed files with 4 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ export const themeColors = {
appSecondaryColor: '#cbe8d9',
sidebarBGColor: '#575757',
sidebarFillColor: '#dee3e5',
paperColor: '#eeeeee',
},
torrentCard: {
accentCardColor: '#337a57',
@@ -58,6 +59,7 @@ export const themeColors = {
appSecondaryColor: '#545a5e',
sidebarBGColor: '#323637',
sidebarFillColor: '#dee3e5',
paperColor: '#323637',
},
torrentCard: {
accentCardColor: '#323637',
@@ -110,12 +112,10 @@ export const mainColors = {
primary: '#00a572',
secondary: '#00a572',
labels: rgba('#000', 0.9),
paperColor: '#eeeeee',
},
dark: {
primary: '#323637',
secondary: '#dee3e5',
labels: rgba('#fff', 0.9),
paperColor: '#323637',
},
}

View File

@@ -1,7 +1,7 @@
import { createTheme, useMediaQuery } from '@material-ui/core'
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' }
@@ -60,7 +60,7 @@ export const useMaterialUITheme = () => {
},
MuiPaper: {
root: {
backgroundColor: mainColors[theme].paperColor,
backgroundColor: themeColors[theme].app.paperColor,
},
},
MuiInputBase: {