Commit Graph

197 Commits

Author SHA1 Message Date
David Capello 3fbdd40f24 Add skew transformation (fix #71)
This is the first version of the feature, it still needs some
fixes (e.g. avoid skew transform when the pivot is in the same side of
the skew handle which can calculate a division by zero).
2020-09-18 19:29:43 -03:00
David Capello 8a3f32b47f Replace all base::Bind() with lambda functions 2020-07-03 21:51:46 -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 29b91aed48 Show minimum brush size when dynamics is on in BrushPreview (fix #2419)
Reports:
https://github.com/aseprite/aseprite/issues/2419
https://community.aseprite.org/t/5919
2020-06-04 16:15:57 -03:00
David Capello 263236deb3 Several fixed for Dynamics
* Now the max value in dynamics is equal to the brush size, so changing
  the brush size (e.g. switching between pencil/eraser tools) will
  change the max brush size (which is the most common parameter to
  change)
* Added mini_slider style for min/max brush/angle values
* Fixed some issues clicking outside the dynamics popup
2020-05-02 11:59:34 -03:00
David Capello 3555bbe29f Fix Show Brushes/Dynamics commands to switch the popup 2020-05-01 13:38:12 -03:00
David Capello 2418a075ca Restore DynamicsField selected status when popup is closed 2020-04-24 13:39:03 -03:00
David Capello 79900db158 Fix issue showing the dynamics popup when the UI scaling changed 2020-04-24 12:04:36 -03:00
David Capello 3c1ea2f407 Add/process dynamic data in/from stroke points (related to #710)
* Converted Stroke points from gfx::Point to Stroke::Pt
* Process gradient data to create shading betweens points or dithering
  with new doc::Brush patterns
2020-04-22 20:17:14 -03:00
David Capello 79f9e28ce8 Added pen pressure sensitivity (fix #710)
- Added support to detect eraser tip on Linux (#610)
- Related to #139
- Still needs works for gradients and better brush interpolations
  between stroke points
- Requested several times, e.g. https://community.aseprite.org/t/1077
  https://community.aseprite.org/t/1881, steam forum, etc.
2020-04-21 22:27:49 -03:00
David Capello 07f1510ebd User can configure "auto select layer" in quick mode independently
Now we have one "auto select layer" option for the quick mode of Move
tool (Ctrl/Cmd key, true by default) an other option for the regular
Move tool mode (false by default).
2020-04-18 21:21:14 -03:00
David Capello 86259a64fc Replace MID() macro with base::clamp() function
In the future we will replace base::clamp() with std::clamp().
2020-04-07 19:47:16 -03:00
David Capello 32fd67e187 [lua] Add ev.button property onclick of shades widget 2020-03-27 16:14:00 -03:00
David Capello c9b330ab65 lua: Added Dialog:shades{} widget
Also ColorShades is a little more generic now (doesn't depends so much
on the ColorBar).
2019-12-16 21:17:12 -03:00
David Capello 8c2a99f952 Add option to reset symmetry to the center (fix #2195) 2019-11-11 15:47:21 -03:00
David Capello c2acc973ee Add support to show multiple sections in Export Sprite Sheet 2019-10-29 16:37:06 -03:00
David Capello e8716cbb6e Improve context bar for slice tool (combobox of slices + action buttons) 2019-05-07 10:28:37 -03:00
rscotchmer a08cfa9e13 Added support for 4 and 8 connected pixel fill method in paint bucket 2019-04-29 23:29:17 -03:00
Gaspar Capello 6f72666330 Restore brush pattern correctly from user preferences 2019-04-24 16:12:01 -03:00
David Capello 109e6fa205 Add render::Dithering() class to store all dithering parameters 2019-04-03 19:32:24 -03:00
David Capello 20b8ee0e57 Add Floyd-Steinberg dithering for RGBA -> Indexed conversion 2019-04-01 22:00:32 -03:00
David Capello 3ec3f75d91 Add radial gradient
Related to:
* https://steamcommunity.com/app/431730/discussions/1/3182216552785250054/
* https://community.aseprite.org/t/radial-gradient/2711
* part of #1629
2019-03-19 20:54:25 -03:00
David Capello b427969b26 Now we can press Shift+Alt in any order to use subtract mode in selection tools
Fixes #1972, related to #1626
2019-01-09 15:04:25 -03:00
David Capello c0fcef0240 Unify ToolTipManagers in MainWindow
In this way we avoid having too many message filters in the ui::Manager.
2018-12-13 14:08:56 -03:00
David Capello 329c50bc2c Add some theme dimensions to customize context bar and color bar size 2018-11-15 11:08:45 -03:00
David Capello 2a5fa78f56 Add selection modes to "Select > Color Range" command (fix #765) 2018-10-26 16:08:31 -03:00
David Capello 3a77321597 Add "intersect" selection mode
Discussions:
https://community.aseprite.org/t/intersectional-selection/801
https://community.aseprite.org/t/feature-request-intersect-with-selection-tool/1797
2018-10-26 14:04:08 -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 5a91325750 Show indicator with old/new colors in ColorPopup (fix #1696) 2018-03-28 15:56:40 -03:00
David Capello e6da079e54 Move ContextBar::ShadeWidget to ColorShades class 2018-03-28 12:57:00 -03:00
David Capello 178df8d810 Show bitmap brushes with button colors from theme.xml
Requested here:
https://twitter.com/antonkudin/status/957004393144094720
2018-01-29 14:09:51 -03:00
David Capello e0a60b6748 Generate the list of command IDs from en.ini file 2017-12-01 15:10:21 -03:00
David Capello c7c049028b Add command to show the brushes popup 2017-11-30 16:23:31 -03:00
David Capello eb3143ce21 Rename CommandsModule to Commands 2017-11-30 12:24:07 -03:00
David Capello e1232516ee Don't discard custom brush when we use eyedropper (fix #1557) 2017-11-23 11:35:41 -03:00
David Capello e1c2ce9e42 Minor change in ContextBar::InkShadesField::ShadeWidget 2017-09-28 12:50:58 -03:00
David Capello 432eedcb97 Support changing theme and UI scaling w/o restart (fix #471) 2017-08-15 10:39:06 -03:00
David Capello e372967cde Fix bug using brush size on selection+snap to grid
Discussion: https://community.aseprite.org/t/snap-to-grid-problem/292
2017-08-08 14:31:27 -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 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 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 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 2a15c58b5b Now DitheringSelector is used to select just a DitheringMatrix for gradients 2017-06-09 17:31:41 -03:00
David Capello 29a49ad7fa Add HSL color selection (related to #707) 2017-05-29 14:20:42 -03:00
David Capello e316a49cb9 Fix crash using Import Sprite Sheet (active tool = nullptr) 2017-05-26 15:03:43 -03:00
David Capello ae67cab015 Add dithering options for Gradient tool (#418) 2017-05-23 20:41:30 -03:00
David Capello 1671411465 Add simple color selection for tag/user data colors 2017-04-04 20:02:29 -03:00