Commit Graph

9590 Commits

Author SHA1 Message Date
Gaspar Capello
309a64de9f Fix export sprite sheet to RGB is not exporting the palette (fix #3881) 2023-11-09 12:16:53 -03:00
David Capello
81b5378f25 Minor refactor to set DitheringSelector combobox size hint (#4001, #4075)
Changed the required size to its minimum (6 instead of 8).
Minor refactor from 1c3224a716

All these values are hard-coded in DitherItem (so we cannot use
theme-related values yet for this).
2023-11-08 16:55:12 -03:00
ChikenUni
1c3224a716 Fixed unnecessary scrollbar in X dimension for dithering selector dropdown.
Added offset to dithering selector dropdown width to avoid X dimension scrollbar obscuring the bottom of the dropdown. This also removes the need for a vertical scrollbar for the generic number of dithering options.
Related to Issue #4001
2023-11-08 16:29:08 -03:00
David Capello
9885b89987 Possible fix for crash reports re-opening IntEntry popup when it's already open (fix #4124) 2023-11-07 17:21:35 -03:00
David Capello
853e10e483 Log UUID when -debug option is specified (fix #4104)
In this way, in some cases, we could ask to the user for the -debug
report and match some Sentry crash report with the user.
2023-11-06 19:59:20 -03:00
David Capello
8da8473c63 Minor comment in AppOptions::VerboseLevel 2023-11-06 19:43:24 -03:00
Dariy Guzairov
9772534ca5 Fix error message when attempting to delete layer in a group (fix #4083)
If the sprite contained only one layer group, and we tried to delete
one child, we got an error message about "You cannot delete all
layers". This fixes this (the error message is only when we delete the
last top level layer).
2023-11-06 16:23:59 -03:00
David Capello
53f0cd665f Update laf module 2023-11-03 16:34:00 -03:00
David Capello
67d5314f0c Fix crash deleting layers while using "Change Layer" w/scroll wheel (fix #4114)
E.g. If we configure Shift+scroll wheel to "Change Layer" action, and
Shift+J to delete a layer, we can press Shift key and move through
layers with the mouse whell while we press the Shift key, and if we
press J (without releasing the Shift) start deleting layers. At some
point a crash will happen.
2023-11-03 11:29:37 -03:00
David Capello
ca8c970c5d Remove ';' chars from lua tests 2023-11-02 14:30:36 -03:00
Martín Capello
3cfa5ef1da [lua] Fix crash when saving tilemap's cel image (fix #4069) 2023-11-02 14:12:55 -03:00
Martín Capello
4a22518c3d Show custom pattern brushes for Paint Bucket (fix #4053) 2023-11-02 12:30:52 -03:00
David Capello
2f2db40062 EditorConfig: Don't use tabs in .md files 2023-10-31 20:05:01 -03:00
David Capello
508c6c755d Update clip submodule 2023-10-30 15:43:25 -03:00
David Capello
557b22a719 [lua] Sprite:newTileset() uses sprite grid size by default (fix #4116) 2023-10-30 13:45:11 -03:00
David Capello
bb60da8c60 [lua] Make Sprite:newTileset(Rectangle) work (fix #4117) 2023-10-30 13:40:12 -03:00
David Capello
43079b226d [lua] Limit the possibility to create a tileset with origin != 0,0 (fix #4118) 2023-10-30 12:35:08 -03:00
Martín Capello
26523156da Improve script engine's exception handling
More details about the implications of this change can be found
in https://github.com/aseprite/aseprite/pull/4057
2023-10-26 11:24:51 -03:00
David Capello
56d293bff5 Update submodules (fix #4102) 2023-10-25 16:40:20 -03:00
David Capello
9800d0ba1a Support scaling down bits (e.g. from 10 to 8) with scale_xbits_to_8bits() doing a bit shift 2023-10-25 16:38:23 -03:00
David Capello
4387432ad3 Take some tests out from a loop they don't depend on 2023-10-25 11:59:28 -03:00
David Capello
dbb89b02a9 Rename scale_xxbits_to_8bits() -> scale_xbits_to_8bits() 2023-10-25 11:57:38 -03:00
David Capello
ae3b2dd144 Revert timeline behavior to the v1.2 default (#4024)
This change was introduced in dd7e27a098
as a possible fix for #4024, but the change is too disruptive to be
introduced at this stage, we need some extra UI elements to make the
drag & drop accessible in both modes: the default v1.2 behavior, and
a possible new selection mode, e.g. #1498
2023-10-25 08:36:54 -03:00
David Capello
83b1acac7c [x11] Update clip module to fix a problem pasting text to some text editors 2023-10-24 17:21:35 -03:00
Dariy Guzairov
ea35725c85 Fix disable delete layer button when only one layer exists (fix #3649) 2023-10-23 19:16:35 -03:00
Martín Capello
fc29686bb2 Prevent crash when in Auto or Stack mode the user tries to move pixels from a tilemap with inexistent tiles (fix #4071) 2023-10-12 14:22:18 -03:00
Nicolás Pinochet
4fc36aaf02 respect slice keys frame number on ase file format (fix #4062) 2023-10-11 18:18:30 -03:00
David Capello
f6db44b81d Fix std::clamp() assert in Manager::onInitTheme() 2023-10-11 15:05:10 -03:00
David Capello
eea59a58dd Minor fix in new timeline button in the toolbar (#4081, #4092)
The button was being painted with "toolbutton_last" part instead of
"toolbutton_normal" when it wasn't highlighted/in "hot" state.
2023-10-11 15:03:39 -03:00
David Capello
cf19b51226 Add new icon for the button to switch the timeline visibility (#4081, #4092) 2023-10-11 14:58:15 -03:00
Akylzhan
4f73b14f8f Add Timeline visibility button to Toolbar, extracted button draw logic to separate member function 2023-10-08 05:58:49 +06:00
Rowan Douglas
27ec013f8b
fixed time duration not including ending frame 2023-10-05 14:00:06 +01:00
David Capello
3f101d48d4 Add more accessible option to re-enable the Aseprite file dialog (fix #4051)
As now the native file selector is the default one, we moved the
option to re-enable the previous file selector to Edit > Preferences >
General > Show Aseprite file dialog option.

Related to #3615 and added as a simple alternative to #2745 which
require native widgets on each native file dialog.
2023-10-04 16:57:11 -03:00
David Capello
5a59ed32c1 Update laf module
New changes required for #3684/#4063 to trigger mouse buttons with
keys correctly.
2023-10-02 20:06:28 -03:00
Ashray Shah
4f3cf9375e Clarify Windows instructions for 64-bit Skia 2023-10-02 09:55:25 -03:00
David Capello
63fb39e0e8 Fix sprintf() warnings using snprintf() or fmt::format() 2023-09-27 19:57:41 -03:00
David Capello
5e34ae0ce2 Fix unused variable warnings 2023-09-27 19:57:41 -03:00
Martín Capello
8b747b4d09 Show brush preview for custom brushes when using Paint Bucket tool (fix #4052) 2023-09-26 14:57:11 -03:00
Andrés Colón
6c06a48456 Update INSTALL.md
Including all the steps for the ARM version of the mac install instructions, rather than partial steps.
2023-09-26 10:46:44 -03:00
Gaspar Capello
6c3ff21354 Fix Full Preview and Edges setting on Cursors preferences (fix #3188) 2023-09-25 18:38:03 -03:00
Martín Capello
74d4154657 Set GraphicsContext.palette automatically when a Sprite's indexed image
or tileset's tile indexed image is drawn
2023-09-25 18:30:36 -03:00
Martín Capello
d777a9a325 [lua] Add GraphicsContext.palette property to set the palette used to draw indexed images 2023-09-25 18:30:36 -03:00
Martín Capello
54116a9550 Use transparent color when the source indexed image uses mask color (fix #3960) 2023-09-25 18:30:36 -03:00
Martín Capello
94b5158a5d Fix blend mode usage for GraphicsContext:drawImage(image, x, y) (fix #3960) 2023-09-25 18:30:36 -03:00
Michał Janiszewski
19b54ffd4e
Use ccache on macOS
Originally (#2699) ccache was only enable for Linux due to suspiciously low
macOS yields.

I have addressed the likely issue upstream
(https://github.com/hendrikmuhs/ccache-action/pull/147) and ccache can be used
on macOS now as well.
2023-09-25 20:11:52 +02:00
Michał Janiszewski
af19d81806 Include build type in ccache key
This should lead to better cache utilisation, smaller caches
2023-09-25 11:13:49 -03:00
Gaspar Capello
bcbe61c882 Fix border padding on the right and bottom sides not being placed (fix #3993)
Prior to this fix, border padding was clipped to the edge of sprites
on the right and bottom in all export sprite sheet types.

This commit includes tests for 'Export Sprite Sheet' command using
shape padding, border padding, inner padding with 'Packed' sheet type
+ 'Trim Cels' = true.
2023-09-22 16:33:19 -03:00
Gaspar Capello
a0331743de Fix Color Range uses last active selection instead of active selection (fix #4045) 2023-09-20 11:44:23 -03:00
Gaspar Capello
db0bc5c6bb Fix F6 shortcut to show the timeline thumbnail by default (fix #4020)
Before this fix, when the thumbnail size was 1, the "Toggle Timeline
Thumbnails" command (F6 key) seemed to not work until we changed
the timeline thumbnail size to 2 or more.
2023-09-20 11:43:43 -03:00
Gaspar Capello
aca8621bff Fix pattern Fill does not "Align to Destination" (fix #2528) 2023-09-20 09:56:01 -03:00