-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace favicon * capitalize icons * icons update * add base group and update cadview * renamed icons folder * add icons * adjust base group, nav panel and search bar * adjust NavTree, ItemProperties, NavPanel * adjust settings, connect cadView itemPanel state * adjust settings, connect cadView itemPanel state * fix icon paths * rename iconGroup to operationGroup * test * build * change item properties open/close pattern * toggle icons on open/close * clean up * fix icons + add no element message * clean up * fix comments * address comments * comments * format * auto space
- Loading branch information
OlegMoshkovich
committed
Feb 23, 2022
1 parent
fb455cc
commit bec50aa
Showing
58 changed files
with
3,582 additions
and
3,505 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react' | ||
import IconButton from '@mui/material/IconButton' | ||
import Tooltip from '@mui/material/Tooltip' | ||
import {makeStyles} from '@mui/styles' | ||
import Settings from './Settings' | ||
import AboutControl from './AboutPanel' | ||
import Open from '../assets/Icons/Open.svg' | ||
|
||
|
||
/** | ||
* Base group contains Settings, ModelUpload, About | ||
* @param {function} fileOpen opens a file dialog for new model upload | ||
* @param {Number} offsetTop | ||
* @return {Object} React component. | ||
*/ | ||
export default function BaseGroup({fileOpen, offsetTop}) { | ||
const classes = useStyles() | ||
return ( | ||
<div className = {classes.container}> | ||
<AboutControl offsetTop = {offsetTop}/> | ||
<Tooltip title="Upload Model" placement="top"> | ||
<IconButton | ||
aria-label='account of current user' | ||
aria-controls='menu-appbar' | ||
aria-haspopup='true' | ||
onClick={fileOpen} | ||
color='inherit' | ||
> | ||
<Open className = {classes.icon}/> | ||
</IconButton> | ||
</Tooltip> | ||
<Settings /> | ||
</div> | ||
) | ||
} | ||
|
||
|
||
const useStyles = makeStyles({ | ||
icon: { | ||
'width': '30px', | ||
'height': '30px', | ||
}, | ||
container: { | ||
'display': 'flex', | ||
'flexDirection': 'row', | ||
'justifyContent': 'space-between', | ||
'width': '140px', | ||
'alignItems': 'center', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.