mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-24 08:31:20 +00:00
Improve common style for dialogs
This commit is contained in:
parent
3ff3c4d69b
commit
fd7aadf367
@ -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' })}
|
||||||
|
@ -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,
|
||||||
}}
|
}}
|
||||||
|
@ -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",
|
||||||
|
@ -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',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user