Commit Graph

10215 Commits

Author SHA1 Message Date
Martín Capello 7454ec2d06 Rename m_useUuidsForLayers by m_uuidsForLayers 2025-02-24 15:14:14 -03:00
Martín Capello 9e69df53d1 Add assert when setting a layer's UUID 2025-02-24 14:58:28 -03:00
Martín Capello efc2a308b2 Fix includes order 2025-02-24 11:27:05 -03:00
Martín Capello dd644865cb Fix m_uuid field's comment 2025-02-24 11:23:39 -03:00
Martín Capello 7a03e45475 Generate UUIDs for Layers lazily 2025-02-24 11:12:54 -03:00
Martín Capello d398bd7a2a Replace "" by std::string() 2025-02-24 10:48:55 -03:00
Martín Capello 2071e465a1 Replace label by entry to show the layer's UUID 2025-02-24 10:47:24 -03:00
Martín Capello 7ced9af5d1 Reword some "UUIDs for layers" related text 2025-02-24 10:47:17 -03:00
Martín Capello c3cfae666b Add io part for layers UUIDs 2025-02-24 10:14:33 -03:00
Martín Capello 86ad09291f Add UUIDs to layers 2025-02-24 10:10:28 -03:00
David Capello 5739bfe287 Fix crash canceling "Apply" filter and then using "OK"
This fixes the ASSERT(!m_tx) in FilterManagerImpl::initTransaction()
in Debug mode, and a crash in Release that happens in any filter if we
cancel a filter progress in the middle, and then press the "OK"
button.
2025-02-20 12:23:31 -03:00
Gaspar Capello f2b870a17f Fix image:drawImage+BlendMode.SRC doesn't draw mask pixels (fix #5001)
Also added tests for Image:drawImage + BlendMode::SRC + ColorMode.RGBA
2025-02-20 12:14:04 -03:00
David Capello 919f4f3321 Update laf module 2025-02-19 17:35:13 -03:00
David Capello a4e0636c9f [lua] don't allow to set invalid pixel ratios (fix #3285) 2025-02-19 17:19:27 -03:00
Gaspar Capello 26f6a210b6 Fix crash with custom pixel ratios (e.g. Size(4, 3)) (fix #4632)
Prior this fix some custom pixel ratios + old render engine +
zoom level <= 50% resulted in crashes.
2025-02-19 15:47:16 -03:00
David Capello b7967a078e Select the default theme font when clicking custom font check boxes 2025-02-15 13:04:49 -03:00
David Capello 698c581c39 Fix FontEntry/::FontFace (SearchEntry) look when it's disabled 2025-02-15 12:58:25 -03:00
David Capello d4406629e6 Add possibility to customize theme fonts (#712, #4307)
From Edit > Preferences > Themes we now can customize the theme Font
and Mini Font.
2025-02-15 12:58:25 -03:00
David Capello bc3433fcf2 Add new ui::TranslationDelegate to translate Entry popup items
Parts of this commit are from #4968 and will be useful to reuse in the
multiline TextEdit widget.

Co-authored-by: Christian Kaiser <info@ckaiser.com.ar>
2025-02-15 12:09:37 -03:00
Martín Capello 2e6d6cfb14 Avoid delayed filter preview start after stop 2025-02-12 17:17:01 -03:00
David Capello d5738fb492 Avoid capturing the mouse from widgets in background windows
This avoids clicking buttons that are not in the foreground/modal
window. At the same time the onBroadcastMouseMessage() functionality
was expanded in such a way that added widgets to the broadcast are the
only ones allowed to re-capture the mouse (even if they are not in the
current foreground window). This is required so the Editor can be
scrolled when we are visualizing a Filter window with preview.

New functions added to simplify some code:

* Manager::transferAsMouseDownMessage()
* Manager::allowCapture()
* base::contains()

Related to #4963 and #4973.
2025-02-12 11:01:59 -03:00
Gaspar Capello 3e3dd2a653 Fix timeline thumbnail zoom can't scale beyond 1:1 pixels (fix #4974)
Prior this fix when using large thumbnail sizes on the timeline with
smaller cel images, instead of enlarging the thumbnail image to fit
the full area available, it just adds transparent whitespace around
the thumbnail image.
2025-02-11 11:06:23 -03:00
David Capello 6c69840184 [ci] Update ccache action 2025-02-10 18:06:42 -03:00
David Capello 56651c6bff Mark DitheringMatrix as final (related to b1d7396080) 2025-02-10 17:44:58 -03:00
Martín Capello b1d7396080 Avoid BayerMatrix object slicing 2025-02-10 17:37:57 -03:00
Martín Capello 91b3603193 Add fitCriteria parameter test 2025-02-10 17:37:57 -03:00
Martín Capello 5e40e5544e Refactor and add fitCriteria parameter (fix #4781)
The refactor is about making ChangePixelFormatCommand to inherit from
the CommandWithNewParams class instead of the Command class
2025-02-10 17:37:57 -03:00
Martín Capello 739ae95b34 Set doc format options at single file loading 2025-02-05 14:41:51 -03:00
Martín Capello e65b678e9e Add option to select cel compression (fix #4901) 2025-02-05 14:41:44 -03:00
David Capello 81bd37551b Merge branch 'main' into beta 2025-01-28 10:08:32 -03:00
David Capello bbe656c856 Missing #include to use color_t in get_sprite_pixel() 2025-01-28 10:05:31 -03:00
David Capello bab775393e Update laf module 2025-01-28 09:32:04 -03:00
sharkboi 8d30a18ed5 Refactor "View > Preview > Brush Preview" to be a global option (fix #4876)
Co-authored-by: David Capello <david@igara.com>
2025-01-23 15:16:44 -03:00
Liebranca e66df8da12 Fix skew with pivot on right side of selection (#4823) 2025-01-23 11:45:17 -03:00
Martín Capello d15b585d03 Fix crash applying filters (fix #4928)
The program was crashing when applying a filter that as a result
removed the current cel
2025-01-21 16:30:46 -03:00
David Capello dd654ca2aa Minor change in FilenameField::updateWidgets() logic
Asking for m_entry != nullptr first as it was before.
2025-01-21 16:23:11 -03:00
David Capello 1d3e262576 Remove unnecessary ; at the end of member function definitions 2025-01-21 16:18:52 -03:00
David Capello 5e469e7f33 Merge branch 'show-output-folder' into beta (fix #4483, #4873) 2025-01-21 16:02:51 -03:00
Dominic Bowden 3aa403d597 Fix invalid tileset cache after color remap
Before this fix changing a color palette and then remapping it would not
invalidate a tileset's cache. Immediately saving to the .aseprite format
after this would use the stale cache data instead of the current sprite
data.
2025-01-21 11:44:47 -03:00
Christian Kaiser 2d0143caea Use the environment bash to avoid using bash 3 on macOS 2025-01-18 19:21:13 -03:00
Liebranca 66d827f6b1 Add checkbox to selected option for FilenameField::onBrowse() menu 2025-01-14 12:56:04 -03:00
Liebranca 57fe1e40a9 Add 'basepath' string option to 'Dialog:file{}'
Allows the user to specify which folder the filename is relative to.
2025-01-14 12:52:31 -03:00
Liebranca 45a183945e Add 'edit_full_path' to preferences for FilenameField 2025-01-13 14:04:18 -03:00
Liebranca 0fbaaf3d82 Fix incorrect path displayed on 'Relative To' option 2025-01-13 13:55:00 -03:00
Liebranca ac1231b083 Use FilenameField in ExportSpriteSheetWindow 2025-01-13 13:55:00 -03:00
Liebranca f1d03b12c5 Move 'OutputFile' logic to FilenameField class 2025-01-13 13:54:55 -03:00
David Capello 9779470d0e Update modules 2025-01-10 11:46:42 -03:00
Thorbjørn Lindeijer db4f80ea91 Fixed zlib include dir when Aseprite is used as sub-project
For the Qt "qaseprite" image plugin, we're using Aseprite as git
submodule so that we can link to its laf, dio and render libraries.

In this case, `CMAKE_BINARY_DIR` refers to the build directory of
qaseprite. We need to use `CMAKE_CURRENT_BINARY_DIR` instead, which
always refers to the right location for the generated `zconf.h`.
2025-01-10 11:29:09 -03:00
Liebranca cb5163c742 Add Relative/Absolute path options to ExportFileWindow 2025-01-09 17:11:27 -03:00
David Capello 5e6927ed4e Update laf module 2025-01-09 17:10:11 -03:00