* Abstract FillColorIndicator and StrokeColorIndicator to ColorIndicator
* Replace stroke color reducer with stroke style reducer
* Add color style proptype
* Clear stroke gradient in line mode
If you select a group with "mixed" gradient types, then color and color2
will both be MIXED. If you then select a shape with a solid color, it
won't reset color2, which will remain MIXED. We only want the background
to appear white if color2 is MIXED *and* the gradient type actually uses
color2. This is already done in the component itself, which only shows
the "mixed" icon if the gradient type is non-solid, but
colorToBackground left out this gradient type check.
Wasn't much of an issue when using only mousemove because that was called many times, but calling on mousedown makes the first blank frame more obvious.
* Make PaintEditor component rtl aware
Fixes the color-picker and any other popover elements.
Adds an RTL prop to the PaintEditor that initializes the `layout` state in redux. Any other components that need to know the layout refer to the state in redux.
I debated whether the state should just be a boolean (true for RTL), or ‘rtl’, ‘ltr’. I went with the latter, but could be convinced that boolean would be better.
I did not add `dir=“rtl”` to the font picker dropdown as all the names are in LTR languages.
Question: Should the sliders reverse direction, and if so, is it worth doing right now when the layout of the color picker may change.
Adding the rtl prop and the `dir=…` to the PaintEditorComponent fixes layout issues in the playground.
* Don’t reverse gradient swatches: the fill colors (and swatch preview) should represent the way the left-right colors will blend when filling a shape.
* Mirror margins, borders and arrow icons for RTL
This handles everything exception the color picker.
I verified that things like the paint brush and magnifying glass should not be mirrored (even people who read Hebrew are usually right-handed)
* Fix dropdown icon padding in RTL
* Create messages.js for all tooltips as many are shared between the bitmap and vector editors:
* Brush Translation
* Eraser Translation
* Fill Translation
* Line Translation
* Oval Translation
* Rect Translation
* Reshape Translation
* RoundedRect Translation
* Select Translation
* Text Translation
* increased fullsize editor width, English required 1272, adding a couple more pixels allowed a couple of other languages to keep labels
* hide flip vertical/horizonal labels for everything except English
* hide all labels for languages defined in `hideLabel`