Improve common style for dialogs

This commit is contained in:
Nicola Benaglia 2025-06-20 16:10:34 +02:00
parent 3ff3c4d69b
commit fd7aadf367
4 changed files with 23 additions and 22 deletions

View File

@ -779,17 +779,10 @@ export const NotAuthenticated = ({
aria-labelledby="alert-dialog-title" aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description" aria-describedby="alert-dialog-description"
fullWidth fullWidth
sx={{
backgroundColor: theme.palette.background.paper,
color: theme.palette.text.primary,
borderRadius: '10px',
}}
> >
<DialogTitle <DialogTitle
id="alert-dialog-title" id="alert-dialog-title"
sx={{ sx={{
backgroundColor: theme.palette.background.paper,
color: theme.palette.text.primary,
fontWeight: 'bold', fontWeight: 'bold',
opacity: 1, opacity: 1,
textAlign: 'center', textAlign: 'center',
@ -798,12 +791,7 @@ export const NotAuthenticated = ({
{t('auth:node.custom_many', { postProcess: 'capitalizeAll' })} {t('auth:node.custom_many', { postProcess: 'capitalizeAll' })}
</DialogTitle> </DialogTitle>
<DialogContent <DialogContent>
sx={{
backgroundColor: theme.palette.background.paper,
color: theme.palette.text.primary,
}}
>
<Box <Box
sx={{ sx={{
display: 'flex', display: 'flex',
@ -1017,12 +1005,7 @@ export const NotAuthenticated = ({
</Box> </Box>
</DialogContent> </DialogContent>
<DialogActions <DialogActions>
sx={{
backgroundColor: theme.palette.background.paper,
color: theme.palette.text.primary,
}}
>
{mode === 'list' && ( {mode === 'list' && (
<Button variant="contained" onClick={addCustomNode}> <Button variant="contained" onClick={addCustomNode}>
{t('core:action.add', { postProcess: 'capitalizeFirstChar' })} {t('core:action.add', { postProcess: 'capitalizeFirstChar' })}

View File

@ -306,7 +306,6 @@ export default function ThemeManager() {
<DialogTitle <DialogTitle
sx={{ sx={{
textAlign: 'center', textAlign: 'center',
color: theme.palette.text.primary,
fontWeight: 'bold', fontWeight: 'bold',
opacity: 1, opacity: 1,
}} }}

View File

@ -364,7 +364,7 @@
"default": "tema di default", "default": "tema di default",
"light": "chiaro", "light": "chiaro",
"light_mode": "modalità chiara", "light_mode": "modalità chiara",
"manager": "manager tema", "manager": "gestore del tema",
"name": "nome tema" "name": "nome tema"
}, },
"thread": "thread", "thread": "thread",

View File

@ -76,7 +76,26 @@ const commonThemeOptions = {
MuiDialog: { MuiDialog: {
styleOverrides: { styleOverrides: {
paper: { paper: {
backgroundImage: 'none', backgroundColor: 'background.paper',
color: 'text.primary',
},
},
},
MuiDialogTitle: {
styleOverrides: {
root: {
backgroundColor: 'inherit',
color: 'inherit',
},
},
},
MuiDialogContent: {
styleOverrides: {
root: {
backgroundColor: 'inherit',
color: 'inherit',
}, },
}, },
}, },