mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-05-19 01:21:59 -04:00
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:
parent
7bab4d5ed8
commit
1017911fd4
20 changed files with 129 additions and 141 deletions
src/containers
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue