David Capello
f6ba8d9ae0
Allow to drag mouse outside color wheel to select colors at the circumference
2021-05-31 15:00:21 -03:00
David Capello
779bf09893
Fix color wheel radius ( fix #2737 )
2021-05-31 14:50:01 -03:00
David Capello
0b33d15462
Fix hidden initial window position in certain cases
...
Reports:
https://community.aseprite.org/t/9327
https://igarastudio.zendesk.com/agent/tickets/2295
2021-05-31 11:13:43 -03:00
David Capello
fffca9e969
Fix white/black flash on Windows/macOS when showing a new native window
2021-05-31 11:11:33 -03:00
David Capello
d13f10212a
Update broken link to compiler features ( close #2677 )
2021-05-29 10:59:35 -03:00
Martín Capello
d79c193e40
Fix dirty area calculation
...
Dirty area region was not calculated correctly when the bottom part of the modified area fell on the intersection of the top left and top middle tile sprites on a tiled-mode-enabled canvas and the top part fell outside of the canvas.
2021-05-28 15:46:50 -03:00
Martín Capello
3bce6f2272
Replace the ToolLoopImpl.wrapPositionOnTiledMode function by a new one in the TiledModeHelper component
2021-05-28 15:46:50 -03:00
David Capello
f5b452ae94
Fix crash clicking the bottom of the combobox
...
Bug report: https://community.aseprite.org/t/9254
2021-05-28 15:44:27 -03:00
Martín Capello
3881589301
Fix onTiledModeChange to make it work as before of the introduction of the tiledModeHelper component
2021-05-28 15:29:41 -03:00
David Capello
b40723e50a
Fix bug where timeline popup isn't re-init after changing theme
...
Bug report: https://twitter.com/autofcontxt/status/1397935596241293318
2021-05-28 15:12:19 -03:00
David Capello
8b5cdde07c
Convert m_confPopup to unique_ptr
2021-05-28 15:08:17 -03:00
David Capello
e5925ffb15
Fix "Auto" mode when there are linked cels in a tilemap layer
2021-05-26 12:22:25 -03:00
David Capello
540e5c90d9
Fix compilation problem (missing gfx::seta() function)
2021-05-26 08:32:54 -03:00
David Capello
d75bf49852
Fix crash in certain scenarios with comboboxes
...
We have to remove the combobox filter to avoid crashes in case that we
receive a kMouseDownMessage when the native window is already
destroyed.
2021-05-26 08:26:39 -03:00
David Capello
73790a9dc8
Fix tab style when the sprite defined color is white
...
Now the text is painted with a negative black or white color depending
on the defined color in the sprite user data. Before this patch if the
tab was painted white (and the tab text in the theme was defined as
white) we weren't able to see the sprite name in the tab at all.
2021-05-24 14:36:23 -03:00
David Capello
d164458c24
Show selected fg/bg items in the tiles view
2021-05-23 15:28:39 -03:00
David Capello
963602444f
Merge branch 'main' into beta
2021-05-23 13:16:36 -03:00
David Capello
613cd38daa
Set the theme of ColorButton popups correctly if they are created
2021-05-23 12:32:32 -03:00
David Capello
94f162112a
Align timeline range outline with the timeline grid
2021-05-22 14:30:33 -03:00
David Capello
a4fc3735c7
Fix crash setting theme in certain cases
...
Mainly when changing ui::View children (where a view changes its
children onInitTheme() function, e.g. adding/removing scrollbar).
2021-05-22 14:18:14 -03:00
David Capello
722ca13b8e
Minor changes in slider and timeline cels parts of dark theme
2021-05-22 14:14:32 -03:00
David Capello
187405f330
[osx] Fix invalid initial size when the Preview (and others) windows appear
2021-05-22 12:08:36 -03:00
David Capello
208178c9af
Fix redrawing invalid regions when opening dithering matrices combobox for Gradient tool
...
It was more visible in this case, but probably it's a general problem
for all auto-remap windows in the code. We should remove this flag in
a near future.
2021-05-22 11:58:59 -03:00
David Capello
383adf2e0c
Fix clicking a combobox to close the popup in multiple windows
2021-05-22 11:40:19 -03:00
David Capello
9d336ef259
Fix bug: we weren't able to pick a gradient from the Dynamics popup
2021-05-22 11:08:10 -03:00
David Capello
a3f9143cbe
Don't ask to adjust the Screen Scaling
...
For the default theme it makes sense (and maybe for most theme
variants it will make sense to avoid adjusting the screen
scaling). But maybe other themes will want to adjust the scale
automatically when choosing the variant.
2021-05-22 00:46:01 -03:00
David Capello
c99000a2c3
Add theme variants to switch easily between Light/Dark themes
2021-05-22 00:42:36 -03:00
David Capello
e7f0832ff3
Fix setting color space of all os::Windows
2021-05-21 21:44:30 -03:00
David Capello
fd7d31ddc2
Several fixes and modifications to the dark theme
2021-05-21 14:45:31 -03:00
David Capello
f4ed3ae321
Don't change user-defined pos of Splitter when we resize the window
2021-05-20 20:42:01 -03:00
David Capello
141bc434bf
Fix bug undoing a Remap operation when several colors are removed from the palette
2021-05-20 19:43:18 -03:00
David Capello
83a6797d20
We support the 'í' char in our pixel-art font
2021-05-20 18:38:03 -03:00
David Capello
95a44f5d68
Focus palette or tiles view when we select a set of colors/tiles
...
E.g. with this we can selected unused colors and then press Delete key
to remove those colors.
2021-05-20 18:03:07 -03:00
David Capello
2bc64cf5ff
Add PalettePicks::invert() member function
2021-05-20 17:57:22 -03:00
David Capello
de8b6ff2b4
Add support to select used/unused tiles from multiple tilemap layers using the same tileset
...
With this commit we've also simplified the
SelectPaletteColorsCommand::selectTiles() function.
2021-05-20 17:49:16 -03:00
David Capello
405c1cfd39
Remove the " Menu" suffix from the palette menu
2021-05-20 17:38:57 -03:00
David Capello
bc824ed9e6
Fix crash calling PaletteSize without active sprite
2021-05-20 17:31:08 -03:00
David Capello
56ae29a9b4
Add different names to SelectPaletteColors and possibility to assign keyboard shortcuts to these items
...
Now we can assign keyboard shortcuts to the whole Palette menu.
2021-05-20 17:28:32 -03:00
David Capello
4b2947a81c
Refactor SelectPaletteColorsCommand and enable it always for colors and in tilemap layers for tiles
...
The command doesn't depend on the current TilemapMode.
2021-05-20 16:26:21 -03:00
Gaspar Capello
3c6320a4b5
Add select used colors and select used tiles on palette options
2021-05-20 15:59:42 -03:00
David Capello
b3e80c49a1
Merge branch 'editor-functions-refactor' into beta
2021-05-20 15:50:37 -03:00
Martín Capello
6c08b5807d
Fix straight line preview on pencil tool to avoid crash
2021-05-20 15:47:55 -03:00
David Capello
89fcd44394
Select the initial ColorButton color when we go back to the button
...
If start dragging from the ColorButton, we go outside the button, and
then we go back to the same button, we should select the original
color when the whole drag-and-drop process started.
We have also improved the look of the button in that case: the
original color is displayed (instead of the inverted color, which is
when the button is selected, in this way is less confusing).
2021-05-20 15:42:09 -03:00
Gaspar Capello
b26d3dc7b6
Minor fix in primitives.cpp
2021-05-20 10:53:26 -03:00
Martín Capello
ab58deaa45
Refactor Editor's methods to move their code into another component
...
By moving the code of these methods we enable automated testing of some functionality that depends of the functionality but not depends of the Editor's GUI.
2021-05-19 17:33:04 -03:00
Martín Capello
34250a145f
Fix wrapPositionOnTiledMode to avoid having any edge of the point shape area outside of the canvas.
...
When some of the edges of the point shape area is outside of the canvas the collapseRegionByTiledMode doesn't include the rects that were outside of the canvas.
2021-05-19 17:27:01 -03:00
David Capello
8b6aa2945f
Fix issue restoring sprite user data color from data recovery sessions
2021-05-18 15:22:28 -03:00
David Capello
fe1d96ed0e
Fix alternating through random colors when picking from the same ColorButton
2021-05-18 14:58:29 -03:00
David Capello
414165f078
Add support to resize sprites with tilemaps
...
This fixes Sprite > Sprite Size and File > Export when a resize
parameter != 100% is given.
2021-05-18 14:52:53 -03:00
David Capello
dd9ef64668
Hot region is specified in screen coordinates for PopupWindows
2021-05-15 14:37:11 -03:00