diff --git a/src/components/molecules/Toolbar/index.tsx b/src/components/molecules/Toolbar/index.tsx index 273f052..aeaeeb5 100644 --- a/src/components/molecules/Toolbar/index.tsx +++ b/src/components/molecules/Toolbar/index.tsx @@ -23,7 +23,7 @@ import MenuIcon from '@mui/icons-material/Menu' const AppBarButton = styled(Button)(({ theme }) => ({ textTransform: 'none', - color: 'inherit', + color: theme.palette.mode === 'dark' ? 'inherit' : 'text.secondary', ':hover': { backgroundColor: 'transparent', ...(theme.palette.mode === 'dark' && { @@ -106,6 +106,10 @@ const CustomToolbar: React.FC = ({ drawerWidth = 240, window backgroundColor: 'hsla(0, 0%, 100%, 0.75)', backdropFilter: 'blur(8px)', }), + transition: theme.transitions.create('background-color', { + duration: theme.transitions.duration.shorter, + easing: theme.transitions.easing.easeInOut, + }), ...props.sx, }}> = ({ drawerWidth = 240, window to="/" disableRipple sx={theme => ({ - [theme.breakpoints.down('md')]: { - mx: 'auto', - }, - [theme.breakpoints.up('md')]: { - mr: 'auto', - }, + color: theme.palette.text.primary, + [theme.breakpoints.down('md')]: { mx: 'auto' }, + [theme.breakpoints.up('md')]: { mr: 'auto' }, })}> - - Michele Tartari - + Michele Tartari - - Home - + Home - - Projects - + Projects - - Curriculum - + Curriculum