-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #406 from charlielee/issue-397
Preview area UI tweaks
- Loading branch information
Showing
12 changed files
with
68 additions
and
61 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
5 changes: 5 additions & 0 deletions
5
src/renderer/components/animator/CaptureButtonToolbar/CaptureButtonToolbar.css
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,5 @@ | ||
.capture-button-toolbar { | ||
justify-content: center; | ||
padding-bottom: 0; | ||
height: var(--height-300); | ||
} |
28 changes: 28 additions & 0 deletions
28
src/renderer/components/animator/CaptureButtonToolbar/CaptureButtonToolbar.tsx
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,28 @@ | ||
import { useDispatch } from "react-redux"; | ||
import { takePhoto } from "../../../redux/capture/actions"; | ||
import IconName from "../../common/Icon/IconName"; | ||
import IconButton from "../../common/IconButton/IconButton"; | ||
import Toolbar from "../../common/Toolbar/Toolbar"; | ||
import ToolbarItem, { | ||
ToolbarItemAlign, | ||
} from "../../common/ToolbarItem/ToolbarItem"; | ||
import "./CaptureButtonToolbar.css"; | ||
|
||
const CaptureButtonToolbar = (): JSX.Element => { | ||
const dispatch = useDispatch(); | ||
|
||
return ( | ||
<Toolbar className="capture-button-toolbar"> | ||
<ToolbarItem align={ToolbarItemAlign.CENTER}> | ||
<IconButton | ||
title="Capture Frame" | ||
icon={IconName.CAPTURE} | ||
className="animation-toolbar__capture-button" | ||
onClick={() => dispatch(takePhoto())} | ||
/> | ||
</ToolbarItem> | ||
</Toolbar> | ||
); | ||
}; | ||
|
||
export default CaptureButtonToolbar; |
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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
.preview { | ||
align-items: center; | ||
background-color: var(--ba-black); | ||
border: var(--ba-border-2) solid transparent; | ||
display: flex; | ||
flex: 1; | ||
justify-content: center; | ||
position: relative; | ||
} | ||
|
||
.preview--active { | ||
border: var(--border-2) solid var(--ba-red); | ||
margin: var(--margin-100); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ h3 { | |
} | ||
|
||
h2 { | ||
color: var(--ba-white); | ||
font-size: 1.4rem; | ||
} | ||
|
||
|