Dirty area region was not calculated correctly when the bottom part of the modified area fell on the intersection of the top left and top middle tile sprites on a tiled-mode-enabled canvas and the top part fell outside of the canvas.
Now the text is painted with a negative black or white color depending
on the defined color in the sprite user data. Before this patch if the
tab was painted white (and the tab text in the theme was defined as
white) we weren't able to see the sprite name in the tab at all.
It was more visible in this case, but probably it's a general problem
for all auto-remap windows in the code. We should remove this flag in
a near future.
For the default theme it makes sense (and maybe for most theme
variants it will make sense to avoid adjusting the screen
scaling). But maybe other themes will want to adjust the scale
automatically when choosing the variant.
If start dragging from the ColorButton, we go outside the button, and
then we go back to the same button, we should select the original
color when the whole drag-and-drop process started.
We have also improved the look of the button in that case: the
original color is displayed (instead of the inverted color, which is
when the button is selected, in this way is less confusing).
By moving the code of these methods we enable automated testing of some functionality that depends of the functionality but not depends of the Editor's GUI.
When some of the edges of the point shape area is outside of the canvas the collapseRegionByTiledMode doesn't include the rects that were outside of the canvas.
Clicking outside a popup window we can close several popup
windows (e.g. tool box tooltip + tool box group popup, or brush pop +
brush params popup).
Before this change a kMouseDownMessage in a PopupWindow will close the
window only if the Manager::getTopWindow() was equal to the PopupWindow.
There were an old bug where the brush popup changed its behavior after
opening a BrushSlotParams menu popup i.e. after that the BrushPopup
disappeared just leaving the mouse outside its hot region (but before
that it disappeared clicking outside the BrushPopup).
Anyway with this change the BrushPopup will disappear only clicking
outside the popup in all cases.