Skip to content

Commit

Permalink
[frontend/backend] Made top-level left nav text bolder and changed tr…
Browse files Browse the repository at this point in the history
…ansparency of selected items; default to no submenu icons
  • Loading branch information
Bonsai8863 committed Sep 9, 2024
1 parent 79eb8cb commit 543bb0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/src/components/ThemeDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,11 @@ const ThemeDark = (
root: {
'&.Mui-selected': {
boxShadow: `2px 0 ${primary || THEME_DARK_DEFAULT_PRIMARY} inset`,
backgroundColor: `${hexToRGB(primary || THEME_DARK_DEFAULT_PRIMARY, 0.24)}`,
},
'&.Mui-selected:hover': {
boxShadow: `2px 0 ${primary || THEME_DARK_DEFAULT_PRIMARY} inset`,
backgroundColor: `${hexToRGB(primary || THEME_DARK_DEFAULT_PRIMARY, 0.32)}`,
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions opencti-platform/opencti-front/src/components/ThemeLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,11 @@ const ThemeLight = (
},
'&.Mui-selected': {
boxShadow: `2px 0 ${primary || THEME_LIGHT_DEFAULT_PRIMARY} inset`,
backgroundColor: hexToRGB(primary || THEME_LIGHT_DEFAULT_PRIMARY, 0.08),
backgroundColor: hexToRGB(primary || THEME_LIGHT_DEFAULT_PRIMARY, 0.12),
},
'&.Mui-selected:hover': {
boxShadow: `2px 0 ${primary || THEME_LIGHT_DEFAULT_PRIMARY} inset`,
backgroundColor: hexToRGB(primary || THEME_LIGHT_DEFAULT_PRIMARY, 0.12),
backgroundColor: hexToRGB(primary || THEME_LIGHT_DEFAULT_PRIMARY, 0.16),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const useStyles = makeStyles((theme) => createStyles({
},
menuItemText: {
padding: '1px 0 0 15px',
fontWeight: 500,
fontWeight: 600,
fontSize: 14,
},
menuSubItemText: {
Expand Down
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/src/resolvers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const userResolvers = {
MeUser: {
language: (current) => current.language ?? 'auto',
unit_system: (current) => current.unit_system ?? 'auto',
submenu_show_icons: (current) => current.submenu_show_icons ?? true,
submenu_show_icons: (current) => current.submenu_show_icons ?? false,
submenu_auto_collapse: (current) => current.submenu_auto_collapse ?? true,
monochrome_labels: (current) => current.monochrome_labels ?? false,
groups: (current, args, context) => userGroupsPaginated(context, context.user, current.id, args),
Expand Down

0 comments on commit 543bb0d

Please sign in to comment.