28 lines
623 B
TypeScript
Executable File
28 lines
623 B
TypeScript
Executable File
import { Theme } from '@mui/material/styles';
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
export default function Progress(theme: Theme) {
|
|
const isLight = theme.palette.mode === 'light';
|
|
|
|
return {
|
|
MuiLinearProgress: {
|
|
styleOverrides: {
|
|
root: {
|
|
borderRadius: 4,
|
|
overflow: 'hidden'
|
|
},
|
|
bar: {
|
|
borderRadius: 4
|
|
},
|
|
colorPrimary: {
|
|
backgroundColor: theme.palette.primary[isLight ? 'lighter' : 'darker']
|
|
},
|
|
buffer: {
|
|
backgroundColor: 'transparent'
|
|
}
|
|
}
|
|
}
|
|
};
|
|
}
|