5740 Commits

Author SHA1 Message Date
David Capello
cce73c4a75 Update hidden ColorPopup bounds correctly if the window is closed with the close button 2017-07-04 14:00:01 -03:00
David Capello
a519822a0e Fix ColorPopup hot region behavior after F4 is used 2017-07-04 13:58:14 -03:00
David Capello
905894c0ee Fix render_tests as now RGB checked bg makes alpha=255 2017-07-04 12:47:53 -03:00
David Capello
7504c6de08 Attach/detach wintab on WM_CREATE/WM_DESTROY messages
- Fixed call DestroyWindow() on ~WinWindow().
- Fixed usage of lparam on WM_CREATE as LPCREATESTRUCT
2017-07-04 12:47:00 -03:00
David Capello
14427e98af Possibility to associate keyboard shorcuts to clear/link/unlink cels 2017-07-04 08:17:47 -03:00
David Capello
2161604921 Fix warning icon behavior on edit mode (fix #1525) 2017-07-03 23:30:24 -03:00
David Capello
1b4ffdfbe9 Fix glitch rendering background with colors w/alpha = 0 2017-07-03 19:49:13 -03:00
David Capello
ab2fdb9a20 F4 shows fg color popup again
beta11 removed the palette editor but we still needed a way to show/hide the color popup.

Fix #1527
2017-07-03 17:41:10 -03:00
David Capello
4f5ce4bf57 Don't modify Params on const member functions 2017-07-03 17:31:56 -03:00
David Capello
b92907237e Fix regression using Ctrl+C, Ctrl+N, Enter, Ctrl+V
A common use case is copying a part of one sprite (Ctrl+C), creating a
new image with the clipboard size (Ctrl+N, Enter), and pasting the
clipboard (Ctrl+V). The pasted sprite must be inside the sprite bounds.

Bug report: https://community.aseprite.org/t/problem-pasting-clipboard-content-in-new-image-v1-2-beta10/108
v1.2-beta11
2017-06-29 16:03:38 -03:00
David Capello
f329f8b50c Snap brushes on grid corners (#1465) 2017-06-29 15:57:44 -03:00
David Capello
7690cedcbe Improve snap to grid for line, ellipse, and rectangle (fix #1500) 2017-06-29 15:33:12 -03:00
David Capello
7072ecebe3 Avoid crash loading old themes without <style> information 2017-06-29 15:26:18 -03:00
David Capello
a92f476e3a Don't change color type when alpha slider is modified on ColorPopup
Bug reported here: https://twitter.com/chefkoch104/status/879664806864748544
2017-06-29 15:01:11 -03:00
David Capello
71b7ee12ec Don't show custom brush options on Gradient tool 2017-06-29 14:46:12 -03:00
David Capello
91c9cc29b0 Use fg/bg color alpha to modify custom brush alpha
Bug reported here: https://twitter.com/dovker/status/880137802142429184
2017-06-29 14:24:53 -03:00
David Capello
cc8337fa84 Fix User-Agent on Linux to include the distribution name/version 2017-06-29 13:03:28 -03:00
David Capello
55637693dd Add X key to switch colors in Replace Color dialog (fix #1430)
Requested here too:
https://community.aseprite.org/t/swap-foreground-and-background-colors-quickly-with-button/114
2017-06-29 11:43:21 -03:00
David Capello
496e396d4f Fixed issue using Ctrl+Shift to move a cel when we have Pencil tool selected
Bug report: https://community.aseprite.org/t/problem-with-a-move-tool/101
2017-06-28 17:45:13 -03:00
David Capello
052e2faac3 Don't depend on bcrypt.dll on Windows (fix #1520) 2017-06-28 17:24:17 -03:00
David Capello
f02ad4a71c Fix crash removing layer when some of its cel has autoguides 2017-06-28 17:20:08 -03:00
David Capello
1a65f21f72 Disable lzma in libarchive 2017-06-24 13:44:25 -03:00
David Capello
72c1f9b765 Current theme can be uninstalled (so we can upgrade it)
Only the default theme cannot be uninstalled.
v1.2-beta10
2017-06-23 15:19:00 -03:00
David Capello
08c70cc6ab Show all frame tags on "Go to frame" by default 2017-06-23 15:15:17 -03:00
David Capello
7156c4ae98 Fix user extensions path on Windows 2017-06-23 15:09:41 -03:00
David Capello
329e556127 Change size hint for color sliders for a better Hue/Saturation dialog default size 2017-06-23 12:24:01 -03:00
David Capello
690d3f5a5e Avoid std::find() for each pixel on HueSaturation for RGB images 2017-06-23 12:17:07 -03:00
David Capello
59c7f7dcec Support hue/saturation adjustments on color palettes of RGBA sprites 2017-06-23 10:39:53 -03:00
David Capello
d0635c3c0b Fix construction of json11::Json object
Don't call Json() ctor directly (gcc error)
2017-06-23 10:29:24 -03:00
David Capello
5d2ed8ce4b Update tooltips when keyboard shortcuts are modified
This was implemented only for ContextBar and ColorBar at the moment.
2017-06-23 10:16:37 -03:00
David Capello
5224c98b9a Disable palette edit mode for grayscale sprites 2017-06-23 09:35:44 -03:00
David Capello
2c3c7d7c0b Add some tooltips to context bar
This should be automatic, but that is for a future version.

Request:
https://community.aseprite.org/t/show-keyboard-shortcuts-on-every-context-bar-tooltip-element/56
2017-06-23 09:02:59 -03:00
David Capello
81ccbee4a2 Safer method to delete installed extension files through __info.json 2017-06-23 08:29:21 -03:00
David Capello
4ccecdeda2 Show alert when we upgrade an existent extension 2017-06-23 07:53:31 -03:00
David Capello
19f6dcfc58 Don't alter pasted image position if it's off canvas (fix #1447)
Now we limit only one pixel inside the sprite bounds.
2017-06-23 07:01:12 -03:00
David Capello
5e24be7ef7 Limit X/Y pasted position separately by axis (#1447)
Use case:
https://github.com/aseprite/aseprite/issues/1447#issuecomment-310582226
2017-06-23 06:29:36 -03:00
David Capello
ab39ec63a8 Minor change in algo_line() comment 2017-06-23 06:18:08 -03:00
David Capello
88e0596692 Reimplement line algorithm (fix #1395) 2017-06-22 21:10:44 -03:00
David Capello
ac44c4ab97 Wait data recovery background thread cancelation on palette changes 2017-06-22 19:40:02 -03:00
David Capello
5da6dc514a Show the kMoveCursor in ColorPopup client area 2017-06-22 19:35:01 -03:00
David Capello
35764bd969 Fix floating close button in ColorPopup when the window is too narrow 2017-06-22 19:11:46 -03:00
David Capello
3f5bfa6d99 Remove unnecessary asserts from create_tool_loop() 2017-06-22 19:04:44 -03:00
David Capello
5ac5b358f3 Fix problem showing Index/Mask with other tabs on ColorPopup
We were able to click on Index (or Mask) and then Shift+click other
tab (like RGB) to show it. With this patch this is not possible anymore.
2017-06-22 18:56:05 -03:00
David Capello
0ced31a447 Hide "Index" tab in FG/BG color popups
The "Index" tab doesn't make sense in the foreground/background color
selector because we already have the color bar at the left of the screen
to click on a palette entry.
2017-06-22 18:55:56 -03:00
David Capello
84282764ee Merge branch 'master' 2017-06-22 17:49:59 -03:00
David Capello
8d693d1a08 Add Ctrl modifier to Shift+pencil to enable angle snap (#1387) 2017-06-22 17:49:26 -03:00
David Capello
7d1404de0a Unify palette editor with color selection (fix #1102)
Added a new A key shortcut (equal to F4) to switch between
selection/edition modes.
2017-06-22 17:44:34 -03:00
David Capello
85b7996e9a HueSaturation can be used for palette and pixels on indexed images now
If there are an active selection: we adjust pixels, if there is no
selection, we adjust palette entries.
2017-06-21 23:13:43 -03:00
David Capello
4834ff3320 Support applying Hue/Saturation filter in selected palette entries 2017-06-21 22:31:18 -03:00
David Capello
6f1f7e41bf Modify the color palette when HueSaturationFilter is used in an indexed image 2017-06-21 21:03:56 -03:00