-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial state changes to support marking dirty projects * Add basic dirty/save indicator * Make ContextMenu render everything on app load to reduce slow animations, control visibility with height/width instead * Make sidebar pane opaque when fullscreen * Bump version * Cleanup
- Loading branch information
1 parent
0d3128e
commit 49cd47d
Showing
13 changed files
with
99 additions
and
29 deletions.
There are no files selected for viewing
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,24 @@ | ||
import styled from 'styled-components'; | ||
import useStore from '../store/useStore'; | ||
|
||
type StyledDirtyIndicatorProps = { | ||
show: boolean; | ||
}; | ||
|
||
const StyledDirtyIndicator = styled.span<StyledDirtyIndicatorProps>` | ||
flex: none; | ||
background-color: ${(p) => p.theme.buttonPrimaryBg}; | ||
height: 8px; | ||
width: 8px; | ||
border-radius: 4px; | ||
opacity: ${(p) => (p.show ? '1' : '0')}; | ||
transition: opacity ease-in-out 100ms; | ||
`; | ||
|
||
const SaveIndicator = () => { | ||
const isProjectDirty = useStore((state) => state.isProjectDirty); | ||
|
||
return <StyledDirtyIndicator show={isProjectDirty} />; | ||
}; | ||
|
||
export default SaveIndicator; |
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
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
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.
Oops, something went wrong.