@@ -8,7 +8,7 @@ import { useTheme } from '@mui/material/styles';
88
99export const UserMenu = ( { anchorEl, open, onClose, userName, userEmail, activeUserMenuItem, onMenuAction } ) => {
1010 const theme = useTheme ( ) ;
11- const navColors = theme . palette ?. navigation ?? { } ;
11+ const navColors = theme . palette ?? { } ;
1212 const menuItems = [
1313 { id : 'settings' , label : 'Settings' , icon : Settings } ,
1414 { id : 'profile' , label : 'Profile' , icon : User } ,
@@ -39,8 +39,8 @@ export const UserMenu = ({ anchorEl, open, onClose, userName, userEmail, activeU
3939 paper : {
4040 sx : {
4141 borderRadius : '4px' ,
42- border : `1px solid ${ navColors . border } ` ,
43- backgroundColor : navColors . menuBackground ,
42+ border : `1px solid ${ navColors . background . background02 . main } ` ,
43+ backgroundColor : navColors . neutral . neutral04 . main ,
4444 minWidth : 200 ,
4545 mt : 1 ,
4646 p : 0 ,
@@ -54,13 +54,13 @@ export const UserMenu = ({ anchorEl, open, onClose, userName, userEmail, activeU
5454 px : 2 ,
5555 pt : 2 ,
5656 pb : 1 ,
57- borderBottom : `1px solid ${ navColors . border } ` ,
57+ borderBottom : `1px solid ${ navColors . background . background02 . main } ` ,
5858 } }
5959 >
6060 < Typography
6161 variant = "subtitle2"
6262 sx = { {
63- color : navColors . text ,
63+ color : navColors . secondary . main ,
6464 mb : 0.5 ,
6565 } }
6666 >
@@ -69,7 +69,7 @@ export const UserMenu = ({ anchorEl, open, onClose, userName, userEmail, activeU
6969 < Typography
7070 variant = "body2"
7171 sx = { {
72- color : navColors . text ,
72+ color : navColors . secondary . main ,
7373 } }
7474 >
7575 { userEmail || 'Anonymous' }
@@ -90,18 +90,18 @@ export const UserMenu = ({ anchorEl, open, onClose, userName, userEmail, activeU
9090 py : 1.25 ,
9191 minHeight : 48 ,
9292 gap : 1.5 ,
93- color : navColors . text ,
93+ color : navColors . secondary . main ,
9494 borderRadius : 0 ,
95- backgroundColor : isActive ? navColors . mutedBg : navColors . menuBackground ,
95+ backgroundColor : isActive ? navColors . neutral . neutral05 . main : navColors . neutral . neutral04 . main ,
9696 '&:hover' : {
97- backgroundColor : navColors . mutedBg ,
97+ backgroundColor : navColors . neutral . neutral05 . main ,
9898 } ,
9999 } }
100100 >
101101 < ListItemIcon
102102 sx = { {
103103 minWidth : 24 ,
104- color : navColors . icon ,
104+ color : navColors . secondary . main ,
105105 display : 'flex' ,
106106 justifyContent : 'center' ,
107107 } }
@@ -112,15 +112,15 @@ export const UserMenu = ({ anchorEl, open, onClose, userName, userEmail, activeU
112112 primary = { item . label }
113113 primaryTypographyProps = { {
114114 variant : 'subtitle2' ,
115- color : navColors . text ,
115+ color : navColors . secondary . main ,
116116 } }
117117 />
118118 </ MenuItem >
119119 ) ;
120120 } ) }
121121 </ Box >
122122
123- < Divider sx = { { borderColor : navColors . border } } />
123+ < Divider sx = { { borderColor : navColors . background . background02 . main } } />
124124
125125 < MenuItem
126126 variant = "navigation"
@@ -130,17 +130,17 @@ export const UserMenu = ({ anchorEl, open, onClose, userName, userEmail, activeU
130130 py : 1.25 ,
131131 minHeight : 48 ,
132132 gap : 1.5 ,
133- color : navColors . text ,
133+ color : navColors . secondary . main ,
134134 borderRadius : 0 ,
135135 '&:hover' : {
136- backgroundColor : navColors . mutedBg ,
136+ backgroundColor : navColors . neutral . neutral05 . main ,
137137 } ,
138138 } }
139139 >
140140 < ListItemIcon
141141 sx = { {
142142 minWidth : 24 ,
143- color : navColors . icon ,
143+ color : navColors . secondary . main ,
144144 display : 'flex' ,
145145 justifyContent : 'center' ,
146146 } }
@@ -151,7 +151,7 @@ export const UserMenu = ({ anchorEl, open, onClose, userName, userEmail, activeU
151151 primary = "Log out"
152152 primaryTypographyProps = { {
153153 variant : 'subtitle2' ,
154- color : navColors . text ,
154+ color : navColors . secondary . main ,
155155 } }
156156 />
157157 </ MenuItem >
0 commit comments