Skip to content

Commit

Permalink
fix: improve style
Browse files Browse the repository at this point in the history
  • Loading branch information
vimcaw committed May 18, 2021
1 parent 1c0d134 commit 7c7e0c9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Canvas/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Canvas() {
raf={false}
renderOnComponentChange
options={{
backgroundColor: 0x080808,
backgroundColor: 0x1e1e1e,
autoDensity: true,
resolution: window.devicePixelRatio,
}}
Expand Down
4 changes: 2 additions & 2 deletions src/DocumentWindow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default function DocumentWindow() {

return (
<Flex flexGrow={1} width={0} direction="column">
<View paddingX="size-200" paddingY="size-100">
<View backgroundColor="gray-300" paddingX="size-200" paddingY="size-100">
{activeDocument.name}
</View>
<Canvas />
<View paddingX="size-100" paddingY="size-50">
<View backgroundColor="gray-300" paddingX="size-100" paddingY="size-50">
{/* eslint-disable-next-line i18next/no-literal-string */}
{activeDocument.size.width}×{activeDocument.size.height}
</View>
Expand Down
8 changes: 6 additions & 2 deletions src/Panels/LayersPanel/Layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ export default function Layer({ id }: { id: EntityId }) {
<ActionButton isQuiet onPress={() => dispatch(switchLayerVisible(id))}>
{layer.visible ? <Visibility /> : <VisibilityOff />}
</ActionButton>
<View backgroundColor="gray-200" width="size-600" height="size-600" />
<Text marginStart="size-200">{layer.name}</Text>
<View flexGrow={1} backgroundColor="gray-400" padding="size-100">
<Flex alignItems="center">
<View backgroundColor="gray-100" width="size-600" height="size-600" />
<Text marginStart="size-600">{layer.name}</Text>
</Flex>
</View>
</Flex>
);
}
2 changes: 1 addition & 1 deletion src/Panels/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function Panels() {
const activeLayerIds = useActiveLayerIds();
return (
<Flex flexShrink={0} direction="column" width="size-5000">
<View padding="size-200">
<View backgroundColor="gray-300" padding="size-100" flexGrow={1}>
{activeLayerIds?.map(layerId => (
<Layer key={layerId} id={layerId} />
))}
Expand Down
2 changes: 1 addition & 1 deletion src/var.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$background: #1e1e1e;
$background: #393939;

0 comments on commit 7c7e0c9

Please sign in to comment.