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

View File

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

View File

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

View File

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