Refactor style

This commit is contained in:
Nicola Benaglia 2025-06-19 08:16:00 +02:00
parent 21e3cdafd9
commit 8f6ecb22ec
4 changed files with 27 additions and 14 deletions

View File

@ -783,13 +783,11 @@ export const NotAuthenticated = ({
id="alert-dialog-title" id="alert-dialog-title"
sx={{ sx={{
textAlign: 'center', textAlign: 'center',
color: theme.palette.text.primary,
fontWeight: 'bold', fontWeight: 'bold',
opacity: 1, opacity: 1,
}} }}
> >
{t('auth:node.custom_many', { postProcess: 'capitalizeFirstChar' })} {t('auth:node.custom_many', { postProcess: 'capitalizeAll' })}
:
</DialogTitle> </DialogTitle>
<DialogContent> <DialogContent>
@ -819,7 +817,6 @@ export const NotAuthenticated = ({
> >
<Typography <Typography
sx={{ sx={{
color: theme.palette.text.primary,
fontSize: '14px', fontSize: '14px',
}} }}
> >
@ -828,10 +825,10 @@ export const NotAuthenticated = ({
<Box <Box
sx={{ sx={{
alignItems: 'center',
display: 'flex', display: 'flex',
gap: '10px', gap: '10px',
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center',
}} }}
> >
<Button <Button
@ -885,7 +882,6 @@ export const NotAuthenticated = ({
> >
<Typography <Typography
sx={{ sx={{
color: theme.palette.text.primary,
fontSize: '14px', fontSize: '14px',
}} }}
> >
@ -978,10 +974,10 @@ export const NotAuthenticated = ({
{mode === 'add-node' && ( {mode === 'add-node' && (
<Box <Box
sx={{ sx={{
alignItems: 'center',
display: 'flex', display: 'flex',
gap: '10px', gap: '10px',
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center',
}} }}
> >
<Input <Input
@ -1071,7 +1067,6 @@ export const NotAuthenticated = ({
id="alert-dialog-title" id="alert-dialog-title"
sx={{ sx={{
textAlign: 'center', textAlign: 'center',
color: theme.palette.text.primary,
fontWeight: 'bold', fontWeight: 'bold',
opacity: 1, opacity: 1,
}} }}

View File

@ -80,6 +80,14 @@ const commonThemeOptions = {
}, },
}, },
}, },
MuiPopover: {
styleOverrides: {
paper: {
backgroundImage: 'none',
},
},
},
}, },
}; };

View File

@ -116,16 +116,21 @@ export const darkThemeOptions: ThemeOptions = {
MuiDialog: { MuiDialog: {
styleOverrides: { styleOverrides: {
root: {
backgroundColor: 'rgb(77, 80, 85)',
color: 'rgb(255, 255, 255)',
},
paper: { paper: {
backgroundImage: 'none', backgroundImage: 'none',
}, },
}, },
}, },
MuiPopover: { MuiPaper: {
styleOverrides: { styleOverrides: {
paper: { root: {
backgroundImage: 'none', backgroundColor: 'rgb(77, 80, 85)',
color: 'rgb(255, 255, 255)',
}, },
}, },
}, },

View File

@ -118,16 +118,21 @@ export const lightThemeOptions: ThemeOptions = {
MuiDialog: { MuiDialog: {
styleOverrides: { styleOverrides: {
root: {
backgroundColor: 'rgb(220, 220, 220)',
color: 'rgba(0, 0, 0, 0.87)',
},
paper: { paper: {
backgroundImage: 'none', backgroundImage: 'none',
}, },
}, },
}, },
MuiPopover: { MuiPaper: {
styleOverrides: { styleOverrides: {
paper: { root: {
backgroundImage: 'none', backgroundColor: 'rgb(220, 220, 220)',
color: 'rgba(0, 0, 0, 0.87)',
}, },
}, },
}, },