Commit Graph

10406 Commits

Author SHA1 Message Date
David Capello e473941376 Merge branch 'main' into beta
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
2025-10-28 16:02:25 -03:00
David Capello 8d029be02c [lua] Update scripting API version to 37 2025-10-28 15:31:57 -03:00
David Capello c4d86588ab Merge branch 'main' into beta 2025-10-28 11:11:47 -03:00
Martín Capello 600dbb5d78 [lua] Fix autoscrollbars behavior
When the Dialog autoscrollbars property was set to true and multiple
displays were used, the dialog didn't show up centered on the screen
2025-10-28 10:35:03 -03:00
Martín Capello 1467f4854e Make BrushPopup update when "saving brush here"
When the BrushPopup was open and there was an unlocked slot and then the
user pressed the "Save Brush Here" button, the popup was not refreshed
2025-10-28 10:35:03 -03:00
Martín Capello f58038493b Revert incorrect change in fit_bounds
Window's bounds origin must be set to (0,0) when using multiple
displays. I've changed that when introduced the Dialog's autoscrollbars
property, without noticing that I broke how the windows were located
inside their native window when using multiple displays
2025-10-28 10:35:03 -03:00
David Capello 74d1117e72 Update fmt submodule to v12.1.0 (testing #5487) 2025-10-28 09:30:28 -03:00
JoshuaL03 ab7e8c8327
Add ignore empty frames toggle to Export As window (fix #5452) (#5491) 2025-10-28 09:24:28 -03:00
David Capello a393688657 Merge branch 'main' into beta
build-auto / build-auto (Debug, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, windows-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, windows-latest) (push) Has been cancelled Details
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
2025-10-24 19:06:39 -03:00
Joshua Lopez 1faf96c253 Fix rotate command creating copy of selection (fix aseprite#1330)
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
2025-10-24 11:08:17 -03:00
Christian Kaiser 827c29fa14 [lua] Avoid setting window bounds when the app is closing (fix #5384) 2025-10-24 10:35:09 -03:00
David Capello 5682372ebb [steam] -batch arg should have the same effect as -noinapp (fix #5482)
build / build (Debug, macos-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, macos-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, noscripts, cli) (push) Waiting to run Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Waiting to run Details
2025-10-24 08:55:49 -03:00
Martín Capello 2fe312637b Improve rectangles and square brushes look
build / build (Debug, macos-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, macos-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, noscripts, cli) (push) Waiting to run Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Waiting to run Details
build-auto / build-auto (Debug, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, windows-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, windows-latest) (push) Has been cancelled Details
2025-10-23 17:32:07 -03:00
Christian Kaiser efa6bdae72 Fix export file window not starting out centered 2025-10-23 16:08:25 -03:00
David Capello b200efd2d1 [osx] Update to macOS 10.14 as minimum platform (fix #4875)
With this we remove several C++17 limitations that were fixed
in macOS 10.13.
2025-10-23 15:03:39 -03:00
David Capello 7646eef29c [osx] Update thumbnailer version
build / build (Debug, macos-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, macos-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, noscripts, cli) (push) Waiting to run Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Waiting to run Details
2025-10-22 17:35:12 -03:00
David Capello bdd4fd5337 [osx] Add missing UTExportedTypeDeclarations in app Info (from Info.plist in #5293)
The UTTypeIdentifier value should match one of the
QLSupportedContentTypes in the QuickLook plugin.
2025-10-22 17:23:58 -03:00
Martín Capello 85aae160a6 [lua] Add error message param to onreceive handler
Now script developer can define websocket's onreceive handlers with an
additional parameter that holds error information when messages of type
WebSocketMessageType.ERROR are received
2025-10-22 12:17:04 -03:00
Gaspar Capello df80d4d392 Fix small graphical bug when dragging cels (fix #5216) 2025-10-22 11:43:10 -03:00
David Capello a6b1e6d48b [lua] Push a SelectionObj instead of a doc::Mask in app.clipboard.content.selection
build / build (Debug, macos-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, macos-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, noscripts, cli) (push) Waiting to run Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Waiting to run Details
We must wrap all doc::Mask inside a SelectionObj in the scripting
engine. This bug crashed the address-sanitizer running
app_clipboard.lua test.
2025-10-21 11:28:59 -03:00
David Capello 5019e17477 [osx] Create a bin/aseprite symlink to the binary inside the .app bundle
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
This might fix running CLI tests (the script wasn't a good option).
2025-10-20 19:56:39 -03:00
David Capello b1fa37898f [osx] Move bin/data to bin/data-deprecated and link bin/data to .app bundle 2025-10-20 19:19:53 -03:00
David Capello 8002fbe0a4 [osx] Add little script to redir bin/aseprite -> bin/Aseprite.app/Contents/MacOS/aseprite
In this way we avoid running old compiled bin/aseprite files (which
might be confusing for users/developers).
2025-10-17 17:25:58 -03:00
David Capello c06080bdbf [cmake] Minor changes specifying target names directly 2025-10-17 17:24:27 -03:00
David Capello c1c5d80fc1 [cmake][osx] Use QUICKLOOK_THUMBNAILING_LIBRARY to refer QuickLookThumbnailing framework
QUICKLOOK_LIBRARY might be cached to QuickLook.framework giving some
compilation errors:

https://github.com/aseprite/aseprite/pull/5314#discussion_r2254556774
2025-10-17 16:09:46 -03:00
Gaspar Capello 22290abb39 Fix thumbnails for macOS Sequoia (fix #5009) 2025-10-17 16:06:02 -03:00
David Capello f161355eab Merge branch 'main' into beta
build-auto / build-auto (Debug, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, windows-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, windows-latest) (push) Has been cancelled Details
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
2025-10-14 18:59:33 -03:00
David Capello 8e7f892c97 Merge branch 'multiple-lines-textbox' into beta (fix #3130) 2025-10-14 18:59:10 -03:00
David Capello 75ae1aada4 New TextCmdProcessor to merge common code between Entry <-> TextEdit widgets 2025-10-14 18:55:32 -03:00
David Capello 050126b0d5 Don't call menu commands with shortcuts that matches the TextEdit ones
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
2025-10-14 15:01:51 -03:00
David Capello 2bb2087e8a Make scrolling & scrollable area more precise 2025-10-14 14:34:58 -03:00
David Capello ad17550df7 Update scrollable area when we write/delete text in the same line 2025-10-14 12:43:08 -03:00
David Capello e520fd09e7 Fix blinking cursor 2025-10-14 11:41:01 -03:00
David Capello acfcb169ae Fix brush preview visual traces when canvas is zoomed out (fix #5005)
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
2025-10-13 19:37:09 -03:00
David Capello a6992f3933 [win] Fix pasting 16bpp images & fix #5458
build-auto / build-auto (Debug, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, windows-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, windows-latest) (push) Has been cancelled Details
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
2025-10-09 18:45:28 -03:00
David Capello 681ee811ce Fix several problems inserting/handling emojis with variation selector
build / build (Debug, macos-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, macos-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, lua, cli) (push) Has been cancelled Details
build / build (Debug, windows-latest, noscripts, cli) (push) Has been cancelled Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Has been cancelled Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Has been cancelled Details
Inserting an emoji with a variation at the end of a line was
introduced a lot of issues (saving the Widget text with the variation
in another place/line).
2025-10-09 12:01:15 -03:00
David Capello 9991566265 Avoid advancing the caret when a variant/hidden unicode char is pasted
This fixes some asserts failing in TextEdit where the caret might be
outside the valid range just because we advance the caret one glyph
when in reality the inserted unicode string is a hidden char/variant.
2025-10-09 09:30:57 -03:00
David Capello 66cb997abb Don't depend on hard-coded ui::Style layers for TextEdit colors
build / build (Debug, macos-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, macos-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, ubuntu-latest, noscripts, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, lua, cli) (push) Waiting to run Details
build / build (Debug, windows-latest, noscripts, cli) (push) Waiting to run Details
build / build (RelWithDebInfo, macos-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, ubuntu-latest, lua, gui) (push) Waiting to run Details
build / build (RelWithDebInfo, windows-latest, lua, gui) (push) Waiting to run Details
build-auto / build-auto (Debug, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (Debug, windows-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, macos-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, ubuntu-latest) (push) Has been cancelled Details
build-auto / build-auto (RelWithDebInfo, windows-latest) (push) Has been cancelled Details
2025-10-08 17:44:46 -03:00
David Capello f6fbe6a8fb Fix crash deleting w/backspace from the last (empty) line 2025-10-08 17:44:46 -03:00
David Capello 23e9e81922 Using Up/Down key in the first/last line goes to BOL/EOL 2025-10-08 17:44:46 -03:00
David Capello c31381e875 Minor refactors 2025-10-08 17:44:46 -03:00
David Capello 5d89d84eaa Fix caret position to ensure proper caret scrolling/IME position 2025-10-08 17:44:46 -03:00
David Capello d1c87035af Remove ASSERT() that can fail if we paste a RTL text 2025-10-08 17:44:46 -03:00
David Capello 63771afc7d Match text caret size with Entry widget 2025-10-08 17:44:46 -03:00
David Capello 3759319971 Use gfx::RectF instead of gfx::Rect for text line bounds 2025-10-08 17:44:46 -03:00
David Capello 596099d67c Fix TextEdit selection bounds for multiple lines
If we select from the beginning of a line to the previous line the
selection painting process was including the first character of the
line where we started, but it shouldn't be included (as the cursor
started in pos=0).
2025-10-08 17:44:46 -03:00
David Capello 5c92df05de Fix TextEdit::caretFromPosition() when lines have different heights 2025-10-08 17:44:46 -03:00
David Capello 1fb4be5569 Invalidate all blobs after changing theme
We've moved the InitTheme code from the InitTheme.connect() signal to
the onInitTheme() member function.
2025-10-08 17:44:46 -03:00
David Capello 2beb1954e7 Implement "selection by words" after double-clicking
This is the same behavior as in ui::Entry widget.
2025-10-08 17:44:46 -03:00
David Capello 38ac7cd4d1 Improve caret/char selection with the mouse 2025-10-08 17:44:46 -03:00