@@ -15,13 +15,19 @@ import {
1515 bgLight ,
1616 radius ,
1717} from '../../theme' ;
18- import { RandomColorLensIcon , ColorLensIcon , TriangleIcon } from './NetPyNEIcons' ;
18+ import {
19+ RandomColorLensIcon ,
20+ ColorLensIcon ,
21+ TriangleIcon ,
22+ TreeItemCurveIcon ,
23+ TreeItemLineWithRadiusIcon ,
24+ } from './NetPyNEIcons' ;
1925import { changeInstanceColor } from '../../redux/actions/general' ;
2026
2127const useStyles = makeStyles ( ( theme ) => ( {
2228 networkItem : {
23- paddingTop : '2px ' ,
24- paddingBottom : '2px ' ,
29+ paddingTop : '0px ' ,
30+ paddingBottom : '0px ' ,
2531 paddingLeft : '8px' ,
2632 paddingRight : '8px' ,
2733 borderRadius : radius ,
@@ -41,8 +47,9 @@ const useStyles = makeStyles((theme) => ({
4147 } ,
4248 colorPickerBox : {
4349 position : 'absolute' ,
44- top : '1.25rem ' ,
50+ top : '1.2rem ' ,
4551 right : '2.5rem' ,
52+ height : '3rem' ,
4653 } ,
4754 triangleIcon : {
4855 marginBottom : '-7px' ,
@@ -74,6 +81,15 @@ const useStyles = makeStyles((theme) => ({
7481 fill : '#ffffff' ,
7582 } ,
7683 } ,
84+ treeItemCurveIcon : {
85+ position : 'relative' ,
86+ } ,
87+ treeItemLineWithRadiusIcon : {
88+ position : 'relative' ,
89+ right : '1.85rem' ,
90+ bottom : '1rem' ,
91+ height : '35%' ,
92+ } ,
7793} ) ) ;
7894
7995const ControlPanelTreeItem = ( props ) => {
@@ -183,7 +199,16 @@ const ControlPanelTreeItem = (props) => {
183199 flexDirection = "row"
184200 justifyContent = "space-between"
185201 >
186- < Grid item xs = { 4 } > < Typography onClick = { ( ) => onNodeSelect ( nodeId ) } > { label } </ Typography > </ Grid >
202+
203+ < Grid item xs = { 4 } >
204+ < Typography onClick = { ( ) => onNodeSelect ( nodeId ) } >
205+ < span >
206+ < TreeItemCurveIcon className = { classes . treeItemCurveIcon } />
207+ < TreeItemLineWithRadiusIcon className = { classes . treeItemLineWithRadiusIcon } />
208+ </ span >
209+ { label }
210+ </ Typography >
211+ </ Grid >
187212 < Grid item xs = { 4 } justifyContent = "center" > < Typography > { type } </ Typography > </ Grid >
188213 < Grid item xs = { 4 } justifyContent = "flex-end" className = { classes . controls } >
189214 { isHoveredOver
@@ -219,7 +244,7 @@ const ControlPanelTreeItem = (props) => {
219244 : null }
220245 </ Grid >
221246 </ Grid >
222- ) }
247+ ) }
223248 >
224249 { children }
225250 </ TreeItem >
0 commit comments