Commit Graph

10293 Commits

Author SHA1 Message Date
Martín Capello 67656c4977 Fix crash dropping elements at edge of bottom cel 2025-06-02 19:45:37 -03:00
Martín Capello 7817e7b37a Fix frame displacement of dropped layers 2025-06-02 19:45:37 -03:00
Martín Capello 45fbeda95b Avoid enqueuing events directly to laf-os 2025-06-02 19:45:37 -03:00
Martín Capello a3236bc1e9 Remove ui::Manager as friend of ui::Widget 2025-06-02 19:45:37 -03:00
Martín Capello d37e0df18f Replace use of reset(new...) by std::make_unique() 2025-06-02 19:45:37 -03:00
Martín Capello 7103829e60 Refactor DropOnTimeline command 2025-06-02 19:45:37 -03:00
Martín Capello eab8df6854 Support duplicating layers from other documents
Update DocApi::duplicateLayerAfter and DocApi::duplicateLayerBefore to
allow duplicating layers from documents that are not the same as the
source layer's document
2025-06-02 19:45:37 -03:00
Martín Capello 99a407f0c5 Move OpenFileJob impl from header to cpp file 2025-06-02 19:45:37 -03:00
David Capello 66123e9d57 Update flic module 2025-05-29 13:39:05 -03:00
David Capello f1b6dd8594 [lua] Fix regression overwriting path specified in Dialog:file{filename} (fix #5061)
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{}.
2025-05-22 14:39:36 -03:00
David Capello 79de4da82a Update laf module 2025-05-22 09:06:35 -03:00
David Capello 9c3f985ee5 [build] Remove xargs and echo -n (fix #5179?)
This is a test to check if "echo -n" and "xargs" are necessary.
2025-05-21 21:28:24 -03:00
Reese Rivers 2cb42b343f Add missing Esperanto accents (ŜŝŬŭ) 2025-05-21 13:56:51 -03:00
Gaspar Capello 38b5f3b283 Fix in Export As dialog the '-export' string never included (fix #5035) 2025-05-19 18:34:58 -03:00
David Capello 41a8249afd New AUTHORS file 2025-05-11 12:14:01 -03:00
David Capello 5dae7e203f Add a summary of open source projects in LICENSES file 2025-05-11 10:26:35 -03:00
David Capello d8e8074345 Fix some ToolBar issues calculating the required min height
* 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
2025-05-09 21:51:26 -03:00
David Capello 95d65d8163 Update json11 module (#5158) 2025-05-07 17:09:42 -03:00
David Capello a8e190a133 [ui] Fit main menu bar in main window width 2025-05-01 15:35:14 -03:00
David Capello 7c74619c94 Update building instructions
Update SDK versions, use libstdc++ on Linux (as we're only pre-compiling
Skia with libstdc++), add some initial information about build.sh
script.
2025-04-29 12:17:41 -03:00
David Capello 5678086310 Update laf module 2025-04-28 19:23:40 -03:00
David Capello 8158345cea Allow to use the close button when a popup window/menu box is displayed (fix #5111, #5134) 2025-04-28 19:22:54 -03:00
David Capello 06d3bbf953 Integrate fixup_image_transparent_colors() in resize_image() (#5048)
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().
2025-04-24 20:58:16 -03:00
lightovernight 6aabfef0b8 Fix Un-replaceable transparent pixels created by resize (fix #5032, #5048) 2025-04-24 20:37:11 -03:00
David Capello 206065fb80 Add a way to change default Timeline options
Fixes https://community.aseprite.org/t/19863
Related to #5083 / https://community.aseprite.org/t/25097
and #1485 in some way, although we've opted to avoid moving these
options to the Preferences dialog as it's quite a big refactor.
2025-04-24 19:38:25 -03:00
cybardev 90be6aac30 [build] Use local .deps directory for users (fix #4998)
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>
2025-04-24 19:34:09 -03:00
David Capello 600882352e Avoid warning using std::stable_sort() from gcc/clang 2025-04-22 22:23:09 -03:00
David Capello aca46a28c5 Remove unused variables 2025-04-22 21:59:21 -03:00
David Capello b099d8f780 Fix initialization order of DelayedMouseMove members 2025-04-22 21:58:27 -03:00
David Capello 378f7ac6c2 Fix small int type for the given kPinnedLimit value 2025-04-22 21:57:48 -03:00
Martín Capello 3bc84cca53 Fix timeline scrolling when creating layer
Fix #4930
2025-04-22 21:54:22 -03:00
Gaspar Capello 3549d3538f Fix regression with timeline thumbnails (fix #5083)
This fix adds an option to scale timeline thumbnails to fill
the entire cell, or simply leave the timeline thumbnails at 1:1 scale
as before issue #4974.
2025-04-22 20:18:21 -03:00
Christian Kaiser 39d69ac8cf Palette picker pinning, loading speed, misc improvements (fix #2365) 2025-04-22 12:45:56 -03:00
Martín Capello ba5adcaa7d Change uuidsForLayers by useLayerUuids 2025-04-22 12:42:12 -03:00
Martín Capello 9e35fd817a [lua] Add uuid field to layers (fix #5033) 2025-04-22 12:42:12 -03:00
David Capello 65c2ed6a35 [build] Use platform.sh file after checking submodules
As this script is part of laf submodule, we have to check the existence
of submodules first, and then run the script.

We've also moved the cl.exe check to build.sh directly.
2025-04-22 07:58:34 -03:00
David Capello c59f1825be Remove extra whitespace between in copyright lines 2025-04-21 19:41:02 -03:00
Gaspar Capello 7f07becd74 Fix cel.image:clear() cannot be undone (fix #5015) 2025-04-21 19:39:32 -03:00
Gaspar Capello fdc9b2f000 Fix symmetry button is kept pressed when we didn't pressed (fix #4760)
This fix removes the 'non sense symmetry filter' to prevent
some buttons from being unintentionally held down.

Moved the drawing process for symmetry axes from
'Editor::drawSpriteUnclippedRect' to
'Editor::drawOneSpriteUnclippedRect' to allow semi-transparent axes.
This also produces axes on every tile in tile mode.

Pixel ratios other than 1:1 are now considered in the drawing logic of
diagonal axes.
2025-04-21 19:20:43 -03:00
David Capello 2e37ac9b83 [build] Don't use unsupported ${var,,} syntax on some shells (fix #5082) 2025-04-18 22:43:36 -03:00
David Capello 753d892af2 [build] read -N 1 is not supported on macOS bash 2025-04-18 22:43:18 -03:00
David Capello 8a8ddbc630 Improve performance loading list of fonts using an app::Task
We list the fonts in a background thread to fill the list of fonts in
the UI. And now we are inserting the fonts in alphabetical order.
2025-04-18 19:56:56 -03:00
David Capello 943c3b28df Merge branch 'main' into beta 2025-04-17 21:10:04 -03:00
David Capello d9a138357e Update modules 2025-04-17 20:34:07 -03:00
David Capello 978000a9dd Better support to use system fonts from themes
* There is a new system="" attribute for <font> elements
* New <font><windows ... /><macos ... /><linux /></font> elements to
  select platform specific fonts
* Fixed several bugs related to re-using fonts from the cache when
  customizing the current theme font from Edit > Preferences > Theme
* Removed Fonts::infoFromFont() adding FontInfo(FontData) constructor
2025-04-17 19:43:32 -03:00
David Capello b3f4e37b69 Add option to switch font hinting (fix #4931, aseprite/laf#138) 2025-04-11 17:26:03 -03:00
David Capello d8632b6208 Move misc/ scripts to laf library 2025-04-11 09:03:28 -03:00
David Capello 3c4d012210 [ci] Fix slow tests 2025-04-10 09:56:46 -03:00
David Capello d51a6d4f51 [ci] New build-auto job to test the build.sh script
This runs only when the build.sh (or some misc/ script) is modified.
2025-04-10 09:21:06 -03:00
David Capello 2c9eb2a801 New misc/skia-url.sh script to simplify downloading the required Skia branch 2025-04-10 09:08:06 -03:00