Commit Graph

161 Commits

Author SHA1 Message Date
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
David Capello 76df84491e Support horizontal/vertical symmetry at the same time (fix #1190) 2017-03-27 15:27:37 -03:00
David Capello 60970b8eae Remove unused code from ui::Button
Removed IButtonIcon interface and Button::m_drawType field.
2017-03-17 16:13:47 -03:00
David Capello bc01f16a4e Move painting code for checkbox & radio button to theme styles 2017-03-17 15:43:42 -03:00
David Capello bc4f8ad3e1 Rename newStyles -> styles 2017-03-13 22:31:57 -03:00
David Capello be3c9c1bcc Convert timeline widget to new styles
And remove the old skin::Style.
2017-03-13 18:13:38 -03:00
David Capello 7cb41729ab Convert label and view into new styles
In this way the WidgetLoader looks for new styles only.
2017-02-14 14:55:45 -03:00
David Capello 47f3d540b7 Fix drawing UI text with TrueType fonts (related to #124) 2017-02-06 17:58:55 -03:00
David Capello 79f82cfbee Merge branch 'beta' into master
The next official release will be v1.2.
2017-01-30 16:02:21 -03:00
David Capello 8691345f03 Add ContiguousFillCommand to switch Contiguous option with a shortcut 2017-01-09 13:04:00 -03:00
David Capello 396f5fb78f Merge branch 'master' into beta 2016-12-02 19:13:08 -03:00
David Capello dcb27c38d7 Don't update brush size/angle fields when we're editing them 2016-12-02 17:24:09 -03:00
David Capello 15bf0948ba Add support to use rectangular marquee/lasso tools w/right click 2016-11-30 21:07:30 -03:00
David Capello 1378275364 Merge branch 'master' into beta 2016-11-29 19:05:35 -03:00
David Capello 8870c90774 Fix several issues with "auto select layer" indicator 2016-11-29 18:36:08 -03:00
David Capello bc939d5638 New eyedropper mode to pick colors from reference layers 2016-10-13 21:19:25 -03:00
David Capello 1ffbd4c343 Add new "Image Color" parameter in brush slots (fix #1259) 2016-09-20 10:26:02 -03:00
David Capello 1c7abd285e Add zoom/scroll buttons in ContextBar (including a new "Fit Screen" command) 2016-09-15 09:50:00 -03:00
David Capello 6377b550e3 Replace base::Signal/Observable* with obs::signal/observable
We can use the obs library directly for signal/slots and observable
objects.
2016-09-13 15:02:00 -03:00
David Capello 3333855db3 Fix Alt+1, Alt+2, etc. shortcuts to change the selected tool brush (fix #1195) 2016-09-12 12:22:48 -03:00
David Capello 92db283cbc Show pin only in fg/bg color selector dialogs 2016-09-08 15:31:22 -03:00
David Capello 5ecc356a41 Replace GPL license with the new EULA 2016-08-29 13:08:21 -03:00
David Capello 1c984696c1 Select active color bar selection when we change to shading ink 2016-07-01 16:24:29 -03:00
David Capello 5ce7f24463 Add tooltip to paint bucket settings button in context bar 2016-05-04 10:06:21 -03:00
David Capello 6dc9bb984d New option for paint bucket using all layers as reference/stop fill (fix #969) 2016-05-03 15:31:27 -03:00
David Capello 918acb6bc8 Don't focus context bar when we use selection behavior modifiers (fix #1103) 2016-05-02 12:25:51 -03:00
David Capello a09b00dba8 Fix synchronization of different UI elements depending on the active tool
With this patch now the context bar shows the real active tool
preferences. For example, if we choose the option to use the Eraser
tool with right-click, now right-clicking will draw with the Eraser
brush size (instead of using the selected tool/left-click tool brush
size).

Changes:
* Removed the toolBox.activeTool() field from preferences
  (as the option isn't persisted between sessions)
* Added an observable app::tools::ActiveToolManager class to sync all
  UI elements that depend on the active tool and ink.
* Moved a lot of "active tool" logic from app::Editor to the
  new ActiveToolManager
* Moved app::tools::ToolLoopManager::Pointer as an indepedent
  app::tools::Pointer class
2016-04-25 15:20:53 -03:00
David Capello 5f90ef7c9b Add properties in App to access directly to timeline/contextBar/workspace 2016-04-22 13:19:06 -03:00
David Capello c5f7e9618b Use the real current tool preferences to draw and in the brush preview
The "real" current tool is the one in the editor returned by
getCurrentEditorTool() (which depends on quicktool modifiers
and right-click configuration).
2016-04-21 01:20:59 -03:00
David Capello 2ce09c53dd Add customization for square aspect, draw from center, and move origin keys (fix #1028)
Some changes:
- Now ui::Keys aren't processed in app::tools side, they are processed
  in Editor side and converted to ToolLoopModifiers flags.
- Replace ToolLoop::getSelectionMode -> ToolLoop::getModifiers()
2016-04-04 18:46:48 -03:00
David Capello 5c61e92193 Change custom brush color when we change fg/bg colors 2016-02-25 18:48:59 -03:00
David Capello c09dfa89f0 Show grayscale colors in color buttons when we're editing a grayscale image 2016-02-24 19:37:20 -03:00
David Capello 67878a21cb Save brush with images correctly when "Save Brush" button is used 2016-02-18 14:43:40 -03:00
David Capello 24e329ffeb Show ink selector even when a custom brush is selected
Related to #945, anyway it needs more work so we can mix the custom
brush as a color source for the current ink.
2016-02-15 20:40:37 -03:00
David Capello 8ca5b0c2f7 Shade ink should use the full palette when we select just one color (fix #947) 2016-02-15 17:30:01 -03:00
David Capello e2e5fbf3f1 Fix crash when ContextBar::InkShadesField is clicked and it's empty 2016-02-15 17:07:34 -03:00
David Capello 2cac6a0706 Don't show shading on effect tools (Eraser, Blur, Jumble) 2015-12-22 17:05:33 -03:00