@@ -4,14 +4,15 @@ import Utils from '../../Utils';
44import Button from '@material-ui/core/Button' ;
55import { changeNodeAtPath } from 'react-sortable-tree' ;
66import Dialog from '@material-ui/core/Dialog' ;
7-
7+ import Box from '@material-ui/core/Box'
8+ import Grid from '@material-ui/core/Grid'
89import DialogActions from '@material-ui/core/DialogActions' ;
910import DialogContent from '@material-ui/core/DialogContent' ;
10-
11+ import { Tooltip } from 'netpyne/components'
1112import IconButton from '@material-ui/core/IconButton' ;
1213import Icon from '@material-ui/core/Icon' ;
1314import { walk } from 'react-sortable-tree' ;
14-
15+ import { bgLight , fontColor } from '../../theme'
1516export default class FileBrowser extends React . Component {
1617
1718 constructor ( props ) {
@@ -121,8 +122,7 @@ export default class FileBrowser extends React.Component {
121122 < Button
122123 key = 'cancel'
123124 onClick = { event => this . onCancelFileBrowser ( ) }
124- style = { { marginRight : 16 } }
125- > cancel</ Button > ,
125+ > CANCEL</ Button > ,
126126 < Button
127127 id = "browserAccept"
128128 key = "select"
@@ -132,7 +132,7 @@ export default class FileBrowser extends React.Component {
132132 this . props . onRequestClose ( this . props . toggleMode ? this . getSelectedFiles ( ) : this . state . selection )
133133 } }
134134 disabled = { this . disableSelectButton ( ) }
135- > select </ Button >
135+ > SELECT </ Button >
136136 ] ;
137137
138138 var selectMessage = this . props . exploreOnlyDirs ? "Select a folder. " : "Select a file. " ;
@@ -142,37 +142,39 @@ export default class FileBrowser extends React.Component {
142142 fullWidth
143143 maxWidth = "sm"
144144 onClose = { ( ) => this . props . onRequestClose ( ) }
145- style = { { zIndex : 5000 } }
145+ style = { { zIndex : 1350 } }
146146 >
147147 < DialogContent >
148- < div style = { { marginBottom : '15px' , color : 'white' } } >
149- < b > { selectMessage } </ b >
150- These paths are relative to:< br />
151- < div className = "flex-row fx-center " >
152- < span className = "code-p w-80" > { this . currentFolder || window . currentFolder } </ span >
148+ < Box color = { fontColor } > { `${ selectMessage } Paths are relative to:` } </ Box >
149+
150+ < Grid container alignItems = "center" >
151+ < Grid item >
152+ < Box m = { 1 } p = { 1 } color = "lightgrey" bgcolor = { bgLight } > { this . currentFolder || window . currentFolder } </ Box >
153+ </ Grid >
154+
155+ < Tooltip title = "Enclosing Folder" placement = "top" >
153156 < IconButton
154- id = "file-browser-level-up"
155157 disableTouchRipple
156- className = 'simple-icon mrg-2'
157158 onClick = { ( ) => this . handleMoveUp ( ) }
158- tooltip-data = 'Enclosing Folder'
159159 >
160- < Icon className = { 'fa fa-level-up listIcon ' } />
160+ < Icon className = { 'fa fa-level-up' } />
161161 </ IconButton >
162+ </ Tooltip >
163+
164+ < Tooltip title = "Home folder" placement = "top" >
162165 < IconButton
163166 disableTouchRipple
164- className = 'simple-icon mrg-2'
165167 onClick = { ( ) => this . handleMoveUp ( true ) }
166- tooltip-data = 'Home folder'
167168 >
168- < Icon className = { 'fa fa-home listIcon ' } />
169+ < Icon className = { 'fa fa-home' } />
169170 </ IconButton >
170- </ div >
171-
172- </ div >
173- < Tree
171+ </ Tooltip >
172+ </ Grid >
173+
174+
175+ < Tree
174176 id = "TreeContainerCutting"
175- style = { { width : "100%" , height : "400px" , float : 'left' } }
177+ style = { { width : "100%" , height : 400 } }
176178 treeData = { [ ] }
177179 handleClick = { this . handleClickVisualize }
178180 rowHeight = { 30 }
0 commit comments