color -> style, move selection gradient into it

A "style" refers to something that can fill/stroke a shape.
Currently that's either a solid color or a gradient of some orientation.
The selection gradient type reducer has been removed and folded into the
"fill style" reducer.
This commit is contained in:
adroitwhiz 2020-04-15 05:13:59 -04:00
parent 7bab4d5ed8
commit 1017911fd4
20 changed files with 129 additions and 141 deletions
src/containers

View file

@ -5,11 +5,10 @@ import bindAll from 'lodash.bindall';
import Modes from '../lib/modes';
import {MIXED} from '../helper/style-path';
import {changeFillColor, DEFAULT_COLOR} from '../reducers/fill-color';
import {changeFillColor, clearFillGradient, DEFAULT_COLOR} from '../reducers/fill-style';
import {changeMode} from '../reducers/modes';
import {clearSelectedItems} from '../reducers/selected-items';
import {clearSelection} from '../helper/selection';
import {clearGradient} from '../reducers/selection-gradient-type';
import BitLineModeComponent from '../components/bit-line-mode/bit-line-mode.jsx';
import BitLineTool from '../helper/bit-tools/line-tool';
@ -102,7 +101,7 @@ const mapDispatchToProps = dispatch => ({
dispatch(clearSelectedItems());
},
clearGradient: () => {
dispatch(clearGradient());
dispatch(clearFillGradient());
},
handleMouseDown: () => {
dispatch(changeMode(Modes.BIT_LINE));