Commit Graph

32 Commits

Author SHA1 Message Date
David Capello c444b566e1 Fix painting UI theme colors as they are specified in sRGB color space
Fixes a regression found after merging #5414:
https://github.com/aseprite/aseprite/pull/5414#issuecomment-3286339563

We always expected a sRGB color in ui::Graphics API and we can specify
a color in another color space using the ui::Paint version of its
member functions.

Several functions related to color spaces are now using a ui::Display
to receive the specific display where we're going to paint, instead of
using os::System::instance()->defaultWindow()->colorSpace().
2025-09-16 09:42:35 -03:00
Gaspar Capello 907138d5dd Fix wrong color space in multiple UI elements
This fix solves color space missmatch in the following UI elements:
- Timeline thumbnails
- Palette entries
- Tileset entries
- Color Spectrum and Wheels
- Color Popup Gradients
- Color Button
2025-09-05 14:50:36 -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
David Capello be6d2251aa Merge branch 'main' into beta 2025-02-26 10:26:09 -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 09538f9a1a clang-format all files 2024-12-16 14:52:19 -03:00
David Capello b2e4f78b69 clang-format all files 2024-12-16 10:10:34 -03:00
David Capello 571b4ec9f2 Update to new laf API (os::System::instance()/make()) 2024-03-05 18:50:24 -03:00
David Capello db80c2a07e Real-time preview when editing tilemaps in Manual mode
In this way we can see the changes to all instances of the same tile
in the tilemap in real-time. The preview is done through a new
"preview tileset" that is used in the render concept (instead of the
preview image, a preview tileset is used as a temporal tileset to be
used for preview purposes only).
2020-11-04 16:54:12 -03:00
David Capello 515dace441 Merge branch 'beta' into tilemap-editor 2020-07-13 17:32:42 -03:00
David Capello db4504e816 Refactor laf-os memory handling 2020-07-07 19:06:48 -03:00
David Capello bd1723313a Merge branch 'master' into tilemap-editor 2020-06-12 11:33:55 -03:00
David Capello b41f1ace30 Move function to convert doc::Image -> os::Surface to app/util 2020-06-09 19:56:25 -03:00
David Capello 6d62b02543 Fix thumbnails for tilemap layers 2020-02-17 09:06:01 -03:00
David Capello e3f09525db Refactor the thumbnails generation of cels
A new Render::renderCel() method is used to render the specific cel
thumbnail, useful in the future to render thumbnails of different kind
of layers (e.g. future tilemaps). And now the background is rendered
in a different step (so the thumbnails doesn't contain the
background.)
2019-04-11 14:29:20 -03:00
David Capello 5cb2d984f0 Rename she -> os 2018-08-09 12:58:43 -03:00
David Capello f2ed45e795 Replace base::UniquePtr -> std::unique_ptr 2018-08-08 17:27:26 -03:00
David Capello 9c79ea2b77 Rename app::Document -> Doc 2018-07-07 11:54:44 -03:00
David Capello dd54e0b6f9 Use bg1/bg2 directly as alpha=255 in the thumbnails generation 2016-09-26 13:00:01 -03:00
David Capello e287d0e066 Avoid temporary copy in app::thumb::get_cel_thumbnail()
Convert gfx::Size arg to const gfx::Size&
2016-09-26 12:58:31 -03:00
David Capello 8da12cde1d Merge branch 'timeline-thumbnails3' of https://github.com/pseudogames/aseprite into pseudogames-timeline-thumbnails3 2016-09-26 12:21:45 -03:00
David Capello b41ad4dd21 Merge branch 'timeline-thumbnails2' of https://github.com/pseudogames/aseprite into pseudogames-timeline-thumbnails2 2016-09-26 11:48:32 -03:00
David Capello 8b9c5f4f27 Merge branch 'timeline-thumbnails' into beta 2016-09-26 11:39:40 -03:00
Carlo "zED" Caputo eca0ac22e8 merge fix 2016-08-07 08:49:58 -03:00
Carlo "zED" Caputo 9ec5587d72 removed thumb opacity setting 2016-08-07 08:26:37 -03:00
Carlo "zED" Caputo e6bf208b12 minimum size for a thumbnail 2016-08-07 05:32:58 -03:00
Carlo "zED" Caputo dcdf1df123 small fixes 2016-08-07 04:26:45 -03:00
Carlo "zED" Caputo f9f7477b04 removed background preference, using checkered 2016-08-07 04:26:44 -03:00
Carlo 'zED' Caputo 0297063c56 removed the quality option 2016-08-07 04:26:37 -03:00
Carlo 'zED' Caputo c126a5807c timeline overlay using the thumbs scaler 2016-07-26 17:45:38 -03:00
David Capello 942300e350 Minor changes and comments about the previous commit 2016-07-25 10:17:53 -03:00
Carlo 'zED' Caputo 57567af06b Add thumbnails in timeline (#340)
Reviewed-by: David Capello <davidcapello@gmail.com>
2016-07-25 10:00:00 -03:00