Commit Graph

9663 Commits

Author SHA1 Message Date
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
Martín Capello
ba99f41d82 [lua] Add "focus", "enabled", and "visible" common properties to tabs 2023-09-19 14:53:47 -03:00
Gaspar Capello
60233ba144 Changed the "Same in all tools" behavior (fix #4007)
Now:
1) If some dynamics are set and the "Same on all tools" box is
unchecked, when we check it, aseprite will copy the active
configuration as shared values.
2) If "Same on all tools" is checked, and we uncheck it, aseprite
will copy shared values to the active tool settings (without touching
other tools), in this way the visible options of the active tool
won't be modified.
2023-09-19 14:27:24 -03:00
Gaspar Capello
5968440f90 Add memorization of tool-shared dynamics options (fix #4007) 2023-09-19 14:27:24 -03:00
David Capello
d8814fa2f9 Add option to avoid drag & drop timeline range from edges
Related to #1498 in some way to start enabling new selection modes in
the timeline.
2023-09-19 12:07:14 -03:00
David Capello
e2d8ffab54 Add reset buttons + tooltips to timeline range options (#4024) 2023-09-18 17:33:38 -03:00
David Capello
ce6494d5f2 Add XML indentation style in EditorConfig file 2023-09-18 17:30:19 -03:00
David Capello
dd7e27a098 New (default) options to customize timeline range selection (fix #4024)
Now a single click will not enable the range, using Shift+click or
dragging the mouse will enable the range of multiple
layers/frames/cels by default (but there are new options to go back to
the previous behavior or customize this behavior in an extensive way).
2023-09-15 19:53:31 -03:00
Gaspar Capello
3f8a8662fe Fix respect snap to grid when we move the selection (fix #4021) 2023-09-14 13:03:15 -03:00
Martín Capello
709545c57e Avoid showing an alert (fired by the default clipboard error handler) when asking if the clipboard has a native bitmap (fix #4016) 2023-09-14 12:57:19 -03:00
Gaspar Capello
7b302794f9 Fix incorrect brush preview when Snap to Grid is active (fix #3743) 2023-09-14 12:33:21 -03:00
Gaspar Capello
6c34be5eb6 Fix initial folder for File > Save with the last one visited (fix #3996)
Regression added in 056073b3f1 in the
custom file selector. Every time you saved a new sprite the dialog
started at the root path (e.g. Desktop) instead of the last used
directory.
2023-09-14 12:31:28 -03:00
David Capello
4b716255e8 Fix typo in extra paint bucket options popup (#4041) 2023-09-14 11:02:15 -03:00
David Capello
b64021ffb2 Add an initial EditorConfig 2023-09-13 10:36:38 -03:00
Martín Capello
815366d385 [lua] Add support to modify tabs buttons via Dialog:modify 2023-09-12 17:21:00 -03:00
Martín Capello
6010748f81 [lua] Add tabs onclick and ontabchange events support 2023-09-12 17:21:00 -03:00
Martín Capello
d21f47f827 [lua] Add selected tab retrieval/selection through Dialog's data and possibility to set the tabs selector at the bottom 2023-09-12 17:21:00 -03:00
David Capello
0ae408fe4e [osx] Disable native file selector by default on macOS 10.11 (fix #3984) 2023-09-12 16:14:56 -03:00
David Capello
84bd6b69f5 [win] Fix bug pasting 8bpp images (fix #4029)
Fixes a bug copying 8bpp images (e.g. from YY-CHR program).
Regression introduced in 282b040b52

Related thread: https://community.aseprite.org/t/6842
2023-09-01 17:37:11 -03:00
David Capello
f4aa19ad8c Add names to threads (#3729)
This is useful for Sentry crash reports, so we can identify threads by
name.
2023-08-29 13:55:40 -03:00
David Capello
6c5b27db81 Fix crash/hang using WebSocket in a previously disconnected socket
This can happen using Pribambase extension when we close Aseprite in
some strange way (e.g. killing the process), and the connection is not
closed correctly. It looks like the Blender addon is in an invalid
state and the data cannot be sent any more, but without this patch
Aseprite just hangs/crashes if we retry sending data, but with this
fix we can receive/show that an error happened sending data.

Related to: https://github.com/machinezone/IXWebSocket/pull/481
2023-08-29 12:39:12 -03:00
David Capello
702a7d5265 [lua] Rename Dialog:canvas{ autoScaling -> autoscaling } (fix #4011) 2023-08-21 21:10:51 -03:00
David Capello
75d7834609 [lua] Add decorate={rulers, dimmed} params to app.editor:askPoint{} 2023-08-21 20:49:58 -03:00
David Capello
922ebf3039 [lua] Increment scripting API version 2023-08-21 20:49:58 -03:00
Gaspar Capello
572cdf2b0e Add check box "Same in all tools" in the Dynamics options window (fix #4003)
Now each tool has independent 'dynamic options'. A global configuration
for all tools is also possible via the 'Same in all tools' option.

ALso this fix, solves a regression inserted in:
2cc15cda9e
(bug inserted: stabilizer is always active)
2023-08-18 15:35:15 -03:00
David Capello
bee6b98336 Add support for dark mode title bars on Windows 11 (fix #3527) 2023-08-16 17:48:45 -03:00
Martín Capello
115e20d2a5 Add tab widget to lua api 2023-08-14 18:08:33 -03:00
Gaspar Capello
456113d015 Fix after dropping a selection via Copy (Selection + Ctrl), handlers are not positioned correctly (fix #3977)
This fix disables the fine control when the transformation doesn't
include rotation, skew and/or fine scaling (so just translating doesn't
allow fine control until we rotate/skew/scaling, this might change in
the future if we add a new anti-aliasing rotation algorithm).
Also this fix improves the regular movement of the selected image.
2023-08-14 18:08:20 -03:00