mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add style to Dialog boxes
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
import { CssBaseline } from '@mui/material';
|
||||
import { blueGrey, blue } from '@mui/material/colors';
|
||||
import { createTheme, responsiveFontSizes, ThemeProvider } from '@mui/material/styles';
|
||||
import type { FC } from 'react';
|
||||
|
||||
import type { RequiredChildrenProps } from 'utils';
|
||||
|
||||
export const dialogStyle = {
|
||||
'& .MuiDialog-paper': {
|
||||
borderRadius: '8px',
|
||||
borderColor: '#565656',
|
||||
borderStyle: 'solid',
|
||||
borderWidth: '1px'
|
||||
},
|
||||
backdropFilter: 'blur(1px)'
|
||||
};
|
||||
|
||||
const theme = responsiveFontSizes(
|
||||
createTheme({
|
||||
typography: {
|
||||
@@ -13,10 +22,10 @@ const theme = responsiveFontSizes(
|
||||
palette: {
|
||||
mode: 'dark',
|
||||
secondary: {
|
||||
main: blue[500]
|
||||
main: '#2196f3' // blue[500]
|
||||
},
|
||||
info: {
|
||||
main: blueGrey[500]
|
||||
main: '#607d8b' // blueGrey[500]
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user