diff --git a/components/Carbon.js b/components/Carbon.js index 3e057f2..f2da23c 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -16,7 +16,7 @@ const DEFAULT_SETTINGS = { paddingHorizontal: '50px', marginVertical: '45px', marginHorizontal: '45px', - background: '#fed0ec', + background: 'rgba(171, 184, 195, 1)', theme: 'seti', language: DEFAULT_LANGUAGE } diff --git a/components/ColorPicker.js b/components/ColorPicker.js index 754aac7..b3ad148 100644 --- a/components/ColorPicker.js +++ b/components/ColorPicker.js @@ -1,8 +1,9 @@ import React from 'react' import enhanceWithClickOutside from 'react-click-outside' -import { TwitterPicker } from 'react-color' +import { SketchPicker } from 'react-color' import WindowPointer from './WindowPointer' import { COLORS } from '../lib/constants' +import { parseRGBA } from '../lib/util' class ColorPicker extends React.Component { constructor() { @@ -21,7 +22,7 @@ class ColorPicker extends React.Component { } handlePickColor(color) { - this.props.onChange(color.hex) + this.props.onChange(parseRGBA(color.rgb)) } render() { @@ -35,11 +36,7 @@ class ColorPicker extends React.Component {