diff --git a/src/editor/components/components/Sidebar.js b/src/editor/components/components/Sidebar.js
index 6fa14d175..16edf5704 100644
--- a/src/editor/components/components/Sidebar.js
+++ b/src/editor/components/components/Sidebar.js
@@ -18,7 +18,11 @@ import {
ManagedStreetIcon,
AutoIcon,
ManualIcon,
- ArrowLeftHookIcon
+ ArrowLeftHookIcon,
+ VideoCameraIcon,
+ GeospatialIcon,
+ LayersIcon,
+ SunIcon
} from '../../icons';
import GeoSidebar from './GeoSidebar';
import EnviroSidebar from './EnviroSidebar';
@@ -39,6 +43,28 @@ export default class Sidebar extends React.Component {
};
}
+ getEntityIcon = (entity) => {
+ if (entity.getAttribute('managed-street')) {
+ return ;
+ }
+ if (entity.getAttribute('street-segment')) {
+ return ;
+ }
+
+ switch (entity.id) {
+ case 'environment':
+ return ;
+ case 'reference-layers':
+ return ;
+ case 'street-container':
+ return ;
+ case 'cameraRig':
+ return ;
+ default:
+ return ;
+ }
+ };
+
getParentComponentName = (entity) => {
const componentName = entity.getAttribute('data-parent-component');
const parentEntity = entity.parentElement;
@@ -119,17 +145,9 @@ export default class Sidebar extends React.Component {
{this.state.showSideBar ? (
<>
-
-
- {entity.getAttribute('managed-street') ? (
-
- ) : entity.getAttribute('street-segment') ? (
-
- ) : (
-
- )}
+
+
+ {this.getEntityIcon(entity)}
{entityName || formattedMixin}
@@ -252,13 +270,7 @@ export default class Sidebar extends React.Component {
{entityName || formattedMixin}
- {entity.getAttribute('managed-street') ? (
-
- ) : entity.getAttribute('street-segment') ? (
-
- ) : (
-
- )}
+ {this.getEntityIcon(entity)}
diff --git a/src/editor/style/index.scss b/src/editor/style/index.scss
index e0b935c37..9715f8834 100644
--- a/src/editor/style/index.scss
+++ b/src/editor/style/index.scss
@@ -617,6 +617,19 @@ body.aframe-inspector-opened {
background-color: variables.$purple-200;
}
+ .icon-container {
+ min-width: 24px;
+ min-height: 24px;
+ display: flex; // This helps with centering
+ align-items: center;
+ justify-content: center;
+
+ svg {
+ min-width: 24px;
+ min-height: 24px;
+ }
+ }
+
.layersBlock {
padding-left: 20px;
display: flex;