diff --git a/src/Components/NavTree/NavTreeNode.jsx b/src/Components/NavTree/NavTreeNode.jsx index 61fafaedf..4d9395cf7 100644 --- a/src/Components/NavTree/NavTreeNode.jsx +++ b/src/Components/NavTree/NavTreeNode.jsx @@ -3,8 +3,8 @@ import React, {ReactElement} from 'react' import {reifyName} from '@bldrs-ai/ifclib' import {useTheme} from '@mui/material/styles' import HideToggleButton from '../HideToggleButton' -import NodeClosedIcon from '../../assets/icons/NodeClosed.svg' -import NodeOpenIcon from '../../assets/icons/NodeOpened.svg' +import NodeClosedIcon from '@mui/icons-material/KeyboardArrowRight' +import NodeOpenIcon from '@mui/icons-material/KeyboardArrowDown' /** @return {ReactElement} */ @@ -59,7 +59,6 @@ export default function NavTreeNode({ role='button' tabIndex={0} style={{ - margin: '7px 8px 0 0', display: 'flex', alignItems: 'center', }} diff --git a/src/Components/Properties/ExpansionPanel.jsx b/src/Components/Properties/ExpansionPanel.jsx index f2db6998a..5a71b3d54 100644 --- a/src/Components/Properties/ExpansionPanel.jsx +++ b/src/Components/Properties/ExpansionPanel.jsx @@ -3,7 +3,7 @@ import Accordion from '@mui/material/Accordion' import AccordionDetails from '@mui/material/AccordionDetails' import AccordionSummary from '@mui/material/AccordionSummary' import Typography from '@mui/material/Typography' -import CaretIcon from '../../assets/icons/Caret.svg' +import PsetOpenIcon from '@mui/icons-material/KeyboardArrowDown' /** @@ -42,9 +42,9 @@ export default function ExpansionPanel({summary, detail, expandState}) { onChange={() => setExpanded(!expanded)} > } - aria-controls="panel1a-content" - id="panel1a-header" + expandIcon={} + aria-controls='panel1a-content' + id='panel1a-header' > setIsSnackOpen(false)} action={ - setIsSnackOpen(false)} - size='small' - sx={{marginRight: '-.5em'}} - > - - - } + setIsSnackOpen(false)} + size='small' + sx={{marginRight: '-.5em'}} + > + + + } message={ - - {text} - + + {text} + } data-testid='snackbar' /> diff --git a/src/assets/icons/NodeClosed.svg b/src/assets/icons/NodeClosed.svg deleted file mode 100644 index caae1add9..000000000 --- a/src/assets/icons/NodeClosed.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/icons/NodeOpened.svg b/src/assets/icons/NodeOpened.svg deleted file mode 100644 index 25bb694e7..000000000 --- a/src/assets/icons/NodeOpened.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/theme/Components.js b/src/theme/Components.js index 5325b60df..639795ae0 100644 --- a/src/theme/Components.js +++ b/src/theme/Components.js @@ -97,41 +97,6 @@ export function getComponentOverrides(palette, typography) { }, }, }, - MuiChip: { - styleOverrides: { - filled: ({theme}) => ({ - 'border': `1px solid ${theme.palette.primary.main}`, - 'backgroundColor': theme.palette.primary.main, - '&:hover': { - backgroundColor: theme.palette.secondary.main, - }, - }), - outlined: ({theme}) => ({ - 'borderColor': theme.palette.primary.main, - 'color': theme.palette.primary.contrastText, - '&&:hover': { - backgroundColor: theme.palette.primary.main, - }, - }), - sampleModel: ({theme}) => ({ - 'borderColor': theme.palette.primary.main, - 'backgroundColor': theme.palette.secondary.main, - 'color': theme.palette.primary.contrastText, - 'width': '11em', - 'height': '6em', - 'display': 'flex', - 'justifyContent': 'center', - '&&:hover': { - backgroundColor: theme.palette.primary.main, - }, - '& .MuiChip-label': { - display: 'flex', - flexDirection: 'column', - alignItems: 'center', - }, - }), - }, - }, MuiDialog: { styleOverrides: { paper: { @@ -179,18 +144,18 @@ export function getComponentOverrides(palette, typography) { }, MuiMenuItem: { styleOverrides: { - root: ({theme}) => ({ + root: { '&.Mui-selected': { - backgroundColor: theme.palette.secondary.dark, + backgroundColor: palette.secondary.dark, fontWeight: 'bold', }, '&.Mui-selected:hover': { // TODO(pablo): merge with above. Can't figure out combined selector - backgroundColor: theme.palette.secondary.dark, + backgroundColor: palette.secondary.dark, fontWeight: 'bold', fontStyle: 'italic', }, - }), + }, }, }, MuiPaper: { @@ -210,31 +175,24 @@ export function getComponentOverrides(palette, typography) { }, { props: {variant: 'page-background'}, - style: ({theme}) => ({ + style: { padding: '10px', borderRadius: '0', - }), + }, }, { props: {variant: 'page'}, - style: ({theme}) => ({ + style: { padding: '10px', borderRadius: '0', - }), + }, }, ], }, - MuiSelect: { - styleOverrides: { - root: { - // background: palette.primary.main, - }, - }, - }, MuiLink: { styleOverrides: { root: { - color: palette.primary.contrastText, + color: palette.secondary.contrastText, textDecoration: 'underline', }, }, @@ -242,17 +200,18 @@ export function getComponentOverrides(palette, typography) { MuiSnackbarContent: { styleOverrides: { root: { + backgroundColor: palette.secondary.main, borderRadius: '10px', }, }, }, MuiSvgIcon: { styleOverrides: { - root: ({theme}) => ({ + root: { width: '1.5rem', height: '1.5rem', - color: theme.palette.secondary.contrastText, - }), + color: palette.secondary.contrastText, + }, }, variants: [{ // Used in HelpControl to indicate activity state @@ -296,9 +255,9 @@ export function getComponentOverrides(palette, typography) { }, MuiTypography: { styleOverrides: { - root: ({theme}) => ({ - color: theme.palette.secondary.contrastText, - }), + root: { + color: palette.secondary.contrastText, + }, }, }, } diff --git a/src/theme/Typography.js b/src/theme/Typography.js index 97674caef..4db827b4c 100644 --- a/src/theme/Typography.js +++ b/src/theme/Typography.js @@ -24,7 +24,7 @@ export function getTypography() { body1: {fontSize, lineHeight, letterSpacing, fontWeight}, body2: {fontSize, lineHeight, letterSpacing, fontWeight}, tree: {fontSize, lineHeight, letterSpacing, fontWeight}, - propTitle: {fontSize, lineHeight, letterSpacing, fontWeight}, - propValue: {fontSize, lineHeight, letterSpacing, fontWeight: 300}, + propTitle: {fontSize, lineHeight, letterSpacing, fontWeight: 300}, + propValue: {fontSize, lineHeight, letterSpacing, fontWeight}, } }