diff --git a/src/Components/ControlsGroup.jsx b/src/Components/ControlsGroup.jsx
index 632ff03c4..5da7e5c65 100644
--- a/src/Components/ControlsGroup.jsx
+++ b/src/Components/ControlsGroup.jsx
@@ -3,10 +3,9 @@ import ButtonGroup from '@mui/material/ButtonGroup'
import OpenModelControl from './OpenModelControl'
import useStore from '../store/useStore'
import {TooltipIconButton} from './Buttons'
-import HistoryIcon from '@mui/icons-material/History'
+// import HistoryIcon from '@mui/icons-material/History'
import SearchIcon from '@mui/icons-material/Search'
import TreeIcon from '../assets/icons/Tree.svg'
-import useTheme from '@mui/styles/useTheme'
/**
@@ -18,19 +17,22 @@ import useTheme from '@mui/styles/useTheme'
*/
export default function OperationsGroup({fileOpen}) {
const toggleIsNavigationVisible = useStore((state) => state.toggleIsNavigationVisible)
- // const isNavigationVisible = useStore((state) => state.isNavigationVisible)
+ const isNavigationVisible = useStore((state) => state.isNavigationVisible)
const toggleIsSearchVisible = useStore((state) => state.toggleIsSearchVisible)
- // const isSearchVisible = useStore((state) => state.isSearchVisible)
- const theme = useTheme()
+ const isSearchVisible = useStore((state) => state.isSearchVisible)
return (
-
+
}
placement='bottom'
- selected={true}
+ aboutInfo={false}
+ selected={isSearchVisible}
onClick={toggleIsSearchVisible}
/>
}
placement='bottom'
aboutInfo={false}
- selected={true}
+ selected={isNavigationVisible}
onClick={toggleIsNavigationVisible}
/>
- }
placement='bottom'
- selected={true}
+ selected={false}
onClick={toggleIsNavigationVisible}
- />
+ /> */}
)
}
diff --git a/src/Components/NavPanel.jsx b/src/Components/NavPanel.jsx
index ac0eba3b0..2a6b7494b 100644
--- a/src/Components/NavPanel.jsx
+++ b/src/Components/NavPanel.jsx
@@ -5,6 +5,7 @@ import Paper from '@mui/material/Paper'
import ToggleButton from '@mui/material/ToggleButton'
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'
import Tooltip from '@mui/material/Tooltip'
+import Typography from '@mui/material/Typography'
import TreeView from '@mui/lab/TreeView'
import {styled} from '@mui/material/styles'
import NavTree from './NavTree'
@@ -80,7 +81,7 @@ export default function NavPanel({
}}
>
}
+ Spatial Navigation
}
@@ -162,7 +164,7 @@ export default function NavPanel({
}}
key='tree'
sx={{
- 'padding': existNavTypesInFeature ? '7px 0 14px 0' : '14px 0',
+ 'padding': existNavTypesInFeature ? '7px 0 14px 0' : '4px 0px 10px 0px',
'maxWidth': '400px',
'overflowY': 'auto',
'overflowX': 'hidden',
diff --git a/src/Components/OpenModelControl.jsx b/src/Components/OpenModelControl.jsx
index e237d9bf9..530c6e4ee 100644
--- a/src/Components/OpenModelControl.jsx
+++ b/src/Components/OpenModelControl.jsx
@@ -17,6 +17,7 @@ import {getOrganizations, getRepositories, getFiles, getUserRepositories} from '
import {RectangularButton} from '../Components/Buttons'
import UploadIcon from '../assets/icons/Upload.svg'
import CreateNewFolderIcon from '@mui/icons-material/CreateNewFolder'
+import CreateNewFolderOutlinedIcon from '@mui/icons-material/CreateNewFolderOutlined'
/**
@@ -54,9 +55,9 @@ export default function OpenModelControl({fileOpen}) {
setIsDialogDisplayed(true)}
- icon={}
+ icon={}
placement={'bottom'}
- selected={true}
+ selected={isDialogDisplayed}
dataTestId='open-ifc'
/>
{isDialogDisplayed &&
diff --git a/src/Components/OperationsGroup.jsx b/src/Components/OperationsGroup.jsx
index dc06648af..752a772f3 100644
--- a/src/Components/OperationsGroup.jsx
+++ b/src/Components/OperationsGroup.jsx
@@ -3,8 +3,6 @@ import Box from '@mui/material/Box'
import ButtonGroup from '@mui/material/ButtonGroup'
import useTheme from '@mui/styles/useTheme'
import useStore from '../store/useStore'
-import {assertDefined} from '../utils/assert'
-import {hexToRgba} from '../utils/color'
import {useIsMobile} from './Hooks'
import AboutControl from './About/AboutControl'
import CameraControl from './CameraControl'
@@ -73,95 +71,77 @@ export default function OperationsGroup({deselectItems}) {
}
const theme = useTheme()
- // When the model has dark/black colors, then the icons (also dark)
- // disappear. This keeps them visible.
- const bgOpacity = 0.2
- const bgColor = hexToRgba(assertDefined(theme.palette.scene.background), bgOpacity)
return (
-
+
{isLoginVisible &&
-
-
}
{isCollaborationGroupVisible &&
-
-
-
+
+
+
}
{isModelInteractionGroupVisible &&
-
- }
- selected={isNotesOn}
- onClick={() => {
- turnOffTooltips()
- toggle('Notes')
- }}
- />
- {
- turnOffTooltips()
- toggle('Properties')
- }}
- selected={isPropertiesOn}
- icon={}
- />
-
- {/* */}
- }
- />
-
-
+ <>
+ }
+ selected={isNotesOn}
+ onClick={() => {
+ turnOffTooltips()
+ toggle('Notes')
+ }}
+ />
+ {
+ turnOffTooltips()
+ toggle('Properties')
+ }}
+ selected={isPropertiesOn}
+ icon={}
+ />
+
+ }
+ />
+ >
}
{isSettingsVisible &&
-
- {isAppStoreEnabled &&
+ <>
+ {isAppStoreEnabled &&
}
selected={isAppStoreOpen}
onClick={() => toggleAppStoreDrawer()}
/>
- }
- theme.toggleColorMode()}
- icon={
+ }
+ theme.toggleColorMode()}
+ icon={
theme.palette.mode === 'light' ?
:
}
- />
-
- toggleIsHelpTooltips()}
- selected={isHelpTooltips}
- icon={}
- />
-
+ />
+
+ toggleIsHelpTooltips()}
+ selected={isHelpTooltips}
+ icon={}
+ />
+ >
}
{/* Invisible */}
-
+
)
}
diff --git a/src/Components/SearchBar.jsx b/src/Components/SearchBar.jsx
index 658952e61..7f10956ae 100644
--- a/src/Components/SearchBar.jsx
+++ b/src/Components/SearchBar.jsx
@@ -1,7 +1,9 @@
import React, {useRef, useEffect, useState} from 'react'
import {useLocation, useNavigate, useSearchParams} from 'react-router-dom'
-import InputAdornment from '@mui/material/InputAdornment'
+import Box from '@mui/material/Box'
+import Paper from '@mui/material/Paper'
import Autocomplete from '@mui/material/Autocomplete'
+import InputAdornment from '@mui/material/InputAdornment'
import IconButton from '@mui/material/IconButton'
import TextField from '@mui/material/TextField'
import {looksLikeLink, githubUrlOrPathToSharePath} from '../ShareRoutes'
@@ -86,66 +88,84 @@ export default function SearchBar({fileOpen}) {
// container (CadView).
return (
)
}
diff --git a/src/theme/Components.js b/src/theme/Components.js
index 9e71e8ccb..a88195be4 100644
--- a/src/theme/Components.js
+++ b/src/theme/Components.js
@@ -77,9 +77,10 @@ export function getComponentOverrides(palette, typography) {
variants: [
{
props: {variant: 'control'},
- style: {
- backgroundColor: palette.primary.background,
- },
+ style: ({ownerState, theme}) => ({
+ backgroundColor: palette.scene.background,
+ boxShadow: theme.shadows[ownerState.elevation],
+ }),
},
{
props: {variant: 'background'},