This was a pending refactor, where "user.aseprite-keys" files were
already using the "shortcut" attribute (instead of "accelerator").
This will include a refactor in the Weblate projects/all translations
to change [select_accelerator] section to [select_shortcut]. But that
must be coordinated after this commit is merged.
Before this fix, when a sprite's color mode was set to Grayscale and
a tileset was exported, the resulting sheet was full of broken
tile images due to a misinterpretation of the pixel format in
the samples.
An unnecessary conversion of the original sprite was also observed
during the "Export Sprite Sheet" command. Specifically,
in the DocExporter::renderTexture function (fix#5088).
Update DocApi::duplicateLayerAfter and DocApi::duplicateLayerBefore to
allow duplicating layers from documents that are not the same as the
source layer's document
If no 'basepath' is specified and the 'filename' argument has a path,
we must use that path as 'basepath' to keep backward compatibility
with the previous behavior of Dialog:file{}.
* The calculation was moved to onResize() event (when bounds are set)
instead of kPaintMessage
* All groups can be collapsed: in case the available space is so
small that we can only show one button to expand all tools
* Don't calculate the min height using the "lastToolBounds" absolute
position, we have to adjust that coordinate with the ToolBar origin
* Make the min height calculation a little more accurate
With this patch we've even fixed a couple of bugs:
1. In resize_image() where fixup_image_transparent_colors() was being
called in the new image instead of the source image.
2. When a bilinear resize was done to a tileset in SpriteSizeCommand,
each tile was being resized directly without calling
fixup_image_transparent_colors().
For an user setup we'd prefer to download Skia inside a .deps
directory (just to simplify the setup). For developers it's better if
we offer a common/shared/absolute directory so different local
Aseprite clones can share the same downloaded Skia version.
Co-authored-by: David Capello <david@igara.com>