Skip to content

Commit

Permalink
new blende mode panel
Browse files Browse the repository at this point in the history
  • Loading branch information
saqsun committed Oct 12, 2018
1 parent 5dee03d commit 06e444f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/components/EmitterConfig/expansionPanelBlendMode.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, { Component } from 'react';
import {
ExpansionPanel,
ExpansionPanelSummary,
Typography,
ExpansionPanelDetails,
} from '@material-ui/core';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import { inject, observer } from 'mobx-react';
import { EMITTER_STORE, EmitterStoreProp } from 'src/stores';
import Select from '../Select';
import { blendModes } from 'src/constants';

@inject(EMITTER_STORE)
@observer
class ExpansionPanelBlendMode extends Component<EmitterStoreProp> {
render() {
return (
<ExpansionPanel>
<ExpansionPanelSummary expandIcon={<ExpandMoreIcon />}>
<Typography>Blend Mode</Typography>
</ExpansionPanelSummary>
<ExpansionPanelDetails>
<Select configName="blendMode" options={blendModes} />
</ExpansionPanelDetails>
</ExpansionPanel>
);
}
}

export default ExpansionPanelBlendMode;
3 changes: 3 additions & 0 deletions src/components/EmitterConfig/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ExpansionPanelFrame from './expansionPanelFrame';
import ExpansionPanelColorPicker from './expansionPanelColorPicker';
import ExpansionPanelTransform from './expansionPanelTransform';
import ExpansionPanelBounds from './expansionPanelBounds';
import ExpansionPanelBlendMode from './expansionPanelBlendMode';

const styles = {
root: {
Expand All @@ -32,6 +33,8 @@ class EmitterConfig extends Component<WithStyles<typeof styles>> {

<ExpansionPanelFrame />

<ExpansionPanelBlendMode />

<ExpansionPanelColorPicker />

<ExpansionPanelXY
Expand Down

0 comments on commit 06e444f

Please sign in to comment.