mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
change colors of icon/text for user profile
This commit is contained in:
@@ -138,23 +138,22 @@ const LayoutMenu = () => {
|
|||||||
disabled={!me.admin}
|
disabled={!me.admin}
|
||||||
to="/settings"
|
to="/settings"
|
||||||
/>
|
/>
|
||||||
<LayoutMenuItem icon={LiveHelpIcon} label={LL.HELP_OF('')} to={`/help`} />
|
<LayoutMenuItem icon={LiveHelpIcon} label={LL.HELP()} to={`/help`} />
|
||||||
</List>
|
</List>
|
||||||
<Divider />
|
<Divider />
|
||||||
<List>
|
<List>
|
||||||
<ListItem disablePadding onClick={handleClick}>
|
<ListItem disablePadding onClick={handleClick}>
|
||||||
<ListItemButton>
|
<ListItemButton>
|
||||||
<ListItemIcon>
|
<ListItemIcon sx={{ color: '#9e9e9e' }}>
|
||||||
<AccountCircleIcon />
|
<AccountCircleIcon />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText>{me.username}</ListItemText>
|
<ListItemText sx={{ color: '#2196f3' }}>{me.username}</ListItemText>
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</List>
|
</List>
|
||||||
|
|
||||||
<Popover
|
<Popover
|
||||||
id={id}
|
id={id}
|
||||||
// sx={{ mb: 10 }}
|
|
||||||
open={open}
|
open={open}
|
||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
onClose={handleClose}
|
onClose={handleClose}
|
||||||
@@ -186,19 +185,17 @@ const LayoutMenu = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
<List>
|
<List>
|
||||||
<ListItem disablePadding>
|
<ListItem disablePadding>
|
||||||
<Avatar sx={{ bgcolor: '#b1395f', color: 'white' }}>
|
<Avatar sx={{ bgcolor: '#9e9e9e', color: 'white' }}>
|
||||||
<PersonIcon />
|
<PersonIcon />
|
||||||
</Avatar>
|
</Avatar>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
sx={{ pl: 2 }}
|
sx={{ pl: 2, color: '#2196f3' }}
|
||||||
primary={me.username}
|
primary={me.username}
|
||||||
secondary={'(' + (me.admin ? LL.ADMINISTRATOR() : LL.GUEST()) + ')'}
|
secondary={'(' + (me.admin ? LL.ADMINISTRATOR() : LL.GUEST()) + ')'}
|
||||||
/>
|
/>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</List>
|
</List>
|
||||||
{/* <Box p={2}> */}
|
|
||||||
<LanguageSelector />
|
<LanguageSelector />
|
||||||
{/* </Box> */}
|
|
||||||
</Box>
|
</Box>
|
||||||
</Popover>
|
</Popover>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user