Commit Graph

759 Commits

Author SHA1 Message Date
David Capello
86e14fa2ff Add 1x1 background grid
From:
https://community.aseprite.org/t/change-background-checkerboard-grid-size/390/2
2017-09-05 14:38:42 -03:00
David Capello
dfa441d2a0 Add option to show/hide Aseprite menu bar
The original Aseprite menu bar will be hidden by default for new users
on macOS.
2017-09-01 17:18:53 -03:00
David Capello
0154a73d36 Add native macOS menus (fix #135)
* This implements the Cmd+H and Cmd+M keys too:
  https://community.aseprite.org/t/279
* Also Cmd+, has more priority on macOS than Cmd+K to open the
  preferences (so macOS menu shows Cmd+,)
2017-09-01 13:32:23 -03:00
David Capello
46ea414287 Avoid assert fail calling SelectedLayers::insert(nullptr) 2017-08-28 11:46:32 -03:00
David Capello
d674aa7330 Restore theme when we cancel preferences dialog 2017-08-22 15:44:44 -03:00
David Capello
d00db433fe theme: Possibility to specify default screen/ui scaling 2017-08-18 19:23:23 -03:00
David Capello
4ed302e4b5 Add ENABLE_DEVMODE flag 2017-08-15 15:47:06 -03:00
David Capello
2bee243c39 Replace INT_MAX with std::numeric_limits<int>::max() 2017-08-15 11:25:23 -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
bcf7efc9bb Replace duktape with mujs
Added other classes like Rectangle, Size, and Point.
2017-08-11 17:22:28 -03:00
David Capello
b24fccb76a Preferences: Fix "Extension Themes" separator in "Extensions" section 2017-07-25 10:47:33 -03:00
David Capello
14ba0ab411 Add addition/subtract/divide blending modes
Changes:
* Added SeparatorInView() to add separators inside a ListBox or ComboBox.
* Added BlendModeItem() to represent each item in the blending modes
  ComboBox.
* Now a ComboBox can contain any kind of widgets as children (not just
  ListItem). This is required to add separators in the blending modes
  ComboBox.

Feature request:
https://community.aseprite.org/t/additive-blending-feature/121
2017-07-24 15:25:13 -03:00
David Capello
85bd973834 Minor change to F4 behavior
Switch edit mode+color popup visibility based on the popup visibility only.
2017-07-04 14:09:50 -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
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
08c70cc6ab Show all frame tags on "Go to frame" by default 2017-06-23 15:15:17 -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
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
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
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
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
David Capello
b3c83d6905 Add possibility to show RGB/HSV/HSL sliders at the same time 2017-06-21 19:54:17 -03:00
David Capello
b7d6311c4c Add support to jump to a frame tag on "Go to Frame" 2017-06-19 11:23:40 -03:00
David Capello
dafaf8d59f Merge branch 'extensions' (#1403) 2017-06-14 21:02:00 -03:00
David Capello
a20976d220 Move dithering matrices to extensions 2017-06-14 16:34:09 -03:00
David Capello
d0282d78f1 Don't create data/themes folder in Preferences 2017-06-14 12:06:55 -03:00
David Capello
76df15d3c3 Add mnemonics to Extensions section in Preferences
Also fixed a problem using Alt+mnemonic on hidden buttons.
2017-06-13 12:04:40 -03:00
David Capello
c4d0273e4e Update themes list when extensions are enabled/disabled 2017-06-13 11:51:49 -03:00
David Capello
511cf43484 Reload palettes when we enable/disable an extension 2017-06-12 18:08:02 -03:00
David Capello
4cbe5a1079 Minor formatting 2017-06-12 14:55:38 -03:00
Chris Hill
cfd46a4ef8 Support hide/show multiple layers on Layer > Visible (Shift+X) 2017-06-12 14:51:02 -03:00
David Capello
a9e688989f Implement Add/Uninstall extension (#1403)
- Added libarchive to uncompress .zip extensions
- Moved ListItem painting code to styles because we needed a selected+disabled state.
2017-06-12 12:38:53 -03:00
David Capello
27c4d832bf First draft-implementation of extensions (#1403)
At the moment only themes are supported and some functionality is not
available yet (disabling an extension, uninstalling it, etc.)
2017-06-10 15:02:39 -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
7a28606241 Avoid showing original sprite on the change "Color Mode" preview 2017-05-31 16:34:46 -03:00
David Capello
29a49ad7fa Add HSL color selection (related to #707) 2017-05-29 14:20:42 -03:00
David Capello
b69e791207 Use color sliders for Hue/Saturation dialog 2017-05-26 15:40:21 -03:00
David Capello
5ad681281d Fix exporting slices data in JSON files on Export Sprite Sheet 2017-05-26 14:36:43 -03:00
David Capello
93d59f87e9 Fix RenderTaskJob compilation on MSVC
We cannot refer the "job" instance in the lambda captures on the same
statement on MSVC compiler.
2017-05-26 11:30:58 -03:00
David Capello
239ac42378 Add Hue/Saturation filter (fix #1186)
Added new gfx::Hsl class to handle HSL color model(related to #707 and #1102)
2017-05-24 19:07:10 -03:00
David Capello
adbcc75fad Hide dithering options when we convert to non-Indexed 2017-05-23 16:00:33 -03:00
David Capello
89acb421e0 Remember ColorModeWindow position 2017-05-23 15:41:56 -03:00
David Capello
4fc19c5466 Change "old-ordered" dithering algorithm to just "old" 2017-05-23 14:56:06 -03:00
David Capello
bcdf598392 Add widget to choose dithering algorithm + matrix 2017-05-22 15:44:08 -03:00
David Capello
5ef6aac925 Add --dithering-matrix CLI option
Now the dithering matrix used in ordered dithering algorithm is configurable.
2017-05-19 15:49:31 -03:00