RC-2: update fuse layout and add new values to themes config

This commit is contained in:
2023-06-11 11:37:15 +01:00
parent 0885eef073
commit 6614303b4b
2 changed files with 24 additions and 15 deletions

View File

@@ -11,7 +11,6 @@ import { memo, useCallback, useContext, useMemo, useRef } from 'react';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
import { matchRoutes, useLocation } from 'react-router-dom'; import { matchRoutes, useLocation } from 'react-router-dom';
import GlobalStyles from '@mui/material/GlobalStyles'; import GlobalStyles from '@mui/material/GlobalStyles';
import { alpha } from '@mui/material/styles';
const inputGlobalStyles = ( const inputGlobalStyles = (
<GlobalStyles <GlobalStyles
@@ -38,20 +37,23 @@ const inputGlobalStyles = (
'table.simple thead tr th': { 'table.simple thead tr th': {
borderColor: theme.palette.divider, borderColor: theme.palette.divider,
}, },
'a:not([role=button]):not(.MuiButtonBase-root)': { // 'a:not([role=button]):not(.MuiButtonBase-root)': {
color: theme.palette.secondary.main, // color: theme.palette.secondary.main,
textDecoration: 'underline', // textDecoration: 'underline',
'&:hover': {}, // '&:hover': {},
}, // },
'a.link, a:not([role=button])[target=_blank]': { // 'a.link, a:not([role=button])[target=_blank]': {
background: alpha(theme.palette.secondary.main, 0.2), // background: alpha(theme.palette.secondary.main, 0.2),
color: 'inherit', // color: 'inherit',
borderBottom: `1px solid ${theme.palette.divider}`, // borderBottom: `1px solid ${theme.palette.divider}`,
textDecoration: 'none', // textDecoration: 'none',
'&:hover': { // '&:hover': {
background: alpha(theme.palette.secondary.main, 0.3), // background: alpha(theme.palette.secondary.main, 0.3),
textDecoration: 'none', // textDecoration: 'none',
}, // },
// },
'[class*="MuiOutlinedInput-root"]': {
borderRadius: theme.size?.inputRadius,
}, },
'[class^="border"]': { '[class^="border"]': {
borderColor: theme.palette.divider, borderColor: theme.palette.divider,

View File

@@ -37,6 +37,7 @@ const themesConfig = {
}, },
background: { background: {
paper: '#FFFFFF', paper: '#FFFFFF',
authPaper: '#F1F5F9',
default: '#f1f5f9', default: '#f1f5f9',
}, },
error: { error: {
@@ -44,10 +45,16 @@ const themesConfig = {
main: '#f44336', main: '#f44336',
dark: '#b71c1c', dark: '#b71c1c',
}, },
border: {
light: '#D9D9D9',
},
}, },
status: { status: {
danger: 'orange', danger: 'orange',
}, },
size: {
inputRadius: '10px',
},
}, },
defaultDark: { defaultDark: {
palette: { palette: {