@@ -6,12 +6,11 @@ import Box from '@material-ui/core/Box';
66import Typography from '@material-ui/core/Typography' ;
77import TextField from '@material-ui/core/TextField' ;
88import TreeView from '@material-ui/lab/TreeView' ;
9- import ExpandMoreIcon from '@material-ui/icons/ExpandMore' ;
10- import ChevronRightIcon from '@material-ui/icons/ChevronRight' ;
119import ControlPanelTreeItem from './ControlPanelTreeItem' ;
1210import { experimentLabelColor } from '../../theme' ;
1311import { MODEL_STATE } from '../../constants' ;
1412import { selectInstances } from '../../redux/actions/general' ;
13+ import { TreeItemArrowRightIcon , TreeItemArrowDownIcon } from './NetPyNEIcons' ;
1514
1615const useStyles = makeStyles ( ( ) => ( {
1716 root : {
@@ -25,7 +24,7 @@ const useStyles = makeStyles(() => ({
2524 left : '-0.65rem' ,
2625 borderRadius : '3.125rem' ,
2726 top : '0rem' ,
28- backgroundImage : 'url("data:image/svg+xml,%3Csvg width=\'1\' height=\'8\' viewBox=\'0 0 1 8\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath d=\'M0 0H1V8H0V0Z\' fill=\'%23ffffff \'/%3E%3C/svg%3E")' ,
27+ backgroundImage : 'url("data:image/svg+xml,%3Csvg width=\'1\' height=\'8\' viewBox=\'0 0 1 8\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath d=\'M0 0H1V8H0V0Z\' fill=\'%23989898 \'/%3E%3C/svg%3E")' ,
2928 backgroundRepeat : 'repeat' ,
3029 } ,
3130 '& .MuiTreeItem-root' : {
@@ -34,7 +33,7 @@ const useStyles = makeStyles(() => ({
3433 content : '""' ,
3534 height : '0.875rem' ,
3635 width : '1.4375rem' ,
37- backgroundImage : 'url("data:image/svg+xml,%3Csvg width=\'12\' height=\'6\' viewBox=\'0 0 12 6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath d=\'M6 6C2.68629 6 0 3.31371 0 0H1C1 2.80391 3.19609 5 6 5V6Z\' fill=\'%23ffffff \'/%3E%3Cpath d=\'M6 5H11.5C11.7761 5 12 5.22386 12 5.5C12 5.77614 11.7761 6 11.5 6H6V5Z\' fill=\'%23ffffff \'/%3E%3C/svg%3E")' ,
36+ backgroundImage : 'url("data:image/svg+xml,%3Csvg width=\'12\' height=\'6\' viewBox=\'0 0 12 6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath d=\'M6 6C2.68629 6 0 3.31371 0 0H1C1 2.80391 3.19609 5 6 5V6Z\' fill=\'%23989898 \'/%3E%3Cpath d=\'M6 5H11.5C11.7761 5 12 5.22386 12 5.5C12 5.77614 11.7761 6 11.5 6H6V5Z\' fill=\'%23989898 \'/%3E%3C/svg%3E")' ,
3837 position : 'absolute' ,
3938 top : '0.5rem' ,
4039 backgroundRepeat : 'no-repeat' ,
@@ -66,6 +65,11 @@ const useStyles = makeStyles(() => ({
6665 fontWeight : 'bold' ,
6766 } ,
6867 } ,
68+ svgContainer : {
69+ fontSize : '12px' ,
70+ width : '10px' ,
71+ height : '10px' ,
72+ } ,
6973} ) ) ;
7074
7175const ExperimentControlPanel = ( props ) => {
@@ -157,8 +161,8 @@ const ExperimentControlPanel = (props) => {
157161 className = { classes . root }
158162 aria-label = "Network data navigator"
159163 defaultExpanded = { [ 'network' ] }
160- defaultCollapseIcon = { < ExpandMoreIcon /> }
161- defaultExpandIcon = { < ChevronRightIcon /> }
164+ defaultCollapseIcon = { < TreeItemArrowDownIcon className = { classes . svgContainer } /> }
165+ defaultExpandIcon = { < TreeItemArrowRightIcon className = { classes . svgContainer } /> }
162166 >
163167 { filter === ''
164168 ? getTreeItemsFromData ( [ window . Instances . getInstance ( 'network' ) ] )
0 commit comments