Skip to content

Commit

Permalink
Merge pull request #1 from nadaOuf/msDestiny14/gui
Browse files Browse the repository at this point in the history
Add color picker
  • Loading branch information
msDestiny14 committed Nov 5, 2020
2 parents 42c6455 + 83d552b commit 320d89a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ColorPickerLineComponent } from '../../sharedComponents/colorPickerComp
import { TextLineComponent } from '../../sharedComponents/textLineComponent';
import { TextInputLineComponent } from '../../sharedComponents/textInputLineComponent';
import { NumericInputComponent } from '../../sharedComponents/numericInputComponent';
import { SketchPicker } from 'react-color';

export class ButtonPropertyTabComponent extends React.Component<IPropertyComponentProps> {
constructor(props: IPropertyComponentProps) {
Expand Down Expand Up @@ -38,7 +39,13 @@ export class ButtonPropertyTabComponent extends React.Component<IPropertyCompone
onChange={evt =>{
this.button.heightInPixels = evt;
}}>
</NumericInputComponent>
</NumericInputComponent>
<TextLineComponent label="Background Color" value={this.button.background} />
<SketchPicker
color={ this.button.background }
onChangeComplete={evt =>{
this.button.background = evt.hex;
}}/>
</LineContainerComponent>
</>
);
Expand Down

0 comments on commit 320d89a

Please sign in to comment.