♻️ refactor(toolbar): add transparency to dark mode background
This commit is contained in:
@@ -109,8 +109,13 @@ const CustomToolbar: React.FC<CustomToolbarProps> = ({ drawerWidth = 240, window
|
|||||||
elevation={theme.palette.mode === 'light' ? 1 : 0}
|
elevation={theme.palette.mode === 'light' ? 1 : 0}
|
||||||
{...props}
|
{...props}
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: trigger ? 'background.paper' : 'transparent',
|
backgroundColor: 'transparent',
|
||||||
'@media print': { backgroundColor: 'background.default' },
|
'@media print': { backgroundColor: 'background.default' },
|
||||||
|
...(trigger && {
|
||||||
|
backgroundColor: 'hsla(230, 18%, 13%, 0.75)',
|
||||||
|
backdropFilter: 'blur(8px)',
|
||||||
|
boxShadow: theme.shadows[4],
|
||||||
|
}),
|
||||||
...(theme.palette.mode === 'light' && {
|
...(theme.palette.mode === 'light' && {
|
||||||
backgroundColor: 'hsla(0, 0%, 100%, 0.75)',
|
backgroundColor: 'hsla(0, 0%, 100%, 0.75)',
|
||||||
backdropFilter: 'blur(8px)',
|
backdropFilter: 'blur(8px)',
|
||||||
|
|||||||
Reference in New Issue
Block a user