diff --git a/src/components/paint-editor.jsx b/src/components/paint-editor.jsx index 1459fe35..46dd614a 100644 --- a/src/components/paint-editor.jsx +++ b/src/components/paint-editor.jsx @@ -4,6 +4,8 @@ import PaperCanvas from '../containers/paper-canvas.jsx'; import BrushMode from '../containers/brush-mode.jsx'; import EraserMode from '../containers/eraser-mode.jsx'; +import styles from './paint-editor.css'; + class PaintEditorComponent extends React.Component { constructor (props) { super(props); @@ -16,19 +18,101 @@ class PaintEditorComponent extends React.Component { this.setState({canvas: canvas}); } render () { - // Modes can't work without a canvas, so we don't render them until we have it - if (this.state.canvas) { - return ( -
- - - -
- ); - } return ( -
- +
+ {/* First row */} +
+ {/* Name field */} +
+ {/* Todo use Label and BufferedInput from Gui */} + +
+ + {/* Undo/Redo */} +
+
+ + +
+
+ + {/* To be Front/back */} +
+ + +
+ + {/* To be Group/Ungroup */} +
+ + +
+
+ + {/* Second Row */} +
+ {/* To be fill */} +
+ +
+ {/* To be stroke */} +
+ +
+ +
+ Mode tools +
+
+ +
+ {/* Modes */} + {this.state.canvas ? ( +
+ + +
+ ) : null} + + {/* Canvas */} +
+ +
+
); }