Project conflict indicators in outline panel

* OutlinePanel has a badge showing the number of conflicting projects
* Each project list item gets a highlight if it has conflicts
* Refactored Popover to prepare to merge it with tooltips
This commit is contained in:
Aria Minaei 2021-08-12 11:52:23 +02:00
parent e50daa3ba7
commit 72d40bf204
8 changed files with 57 additions and 39 deletions

View file

@ -134,10 +134,11 @@ const SnapshotEditor: React.FC<{paneId: string}> = (props) => {
<Overlay>
<Tools>
<ToolbarIconButton
icon={<IoCameraReverseOutline />}
label="Refresh Snapshot"
title="Refresh Snapshot"
onClick={createSnapshot}
></ToolbarIconButton>
>
<IoCameraReverseOutline />
</ToolbarIconButton>
</Tools>
</Overlay>

View file

@ -26,9 +26,10 @@ const Toolbar: VFC = () => {
onClick={() => {
studio.createPane('snapshotEditor')
}}
icon={<IoCameraOutline />}
label="Create snapshot"
/>
title="Create snapshot"
>
<IoCameraOutline />
</ToolbarIconButton>
<TransformControlsModeSelect
value={transformControlsMode}
onChange={(value) =>