Commit Graph

5799 Commits

Author SHA1 Message Date
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
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
55646484f0 Move community link first 2017-06-20 18:43:51 -03:00
David Capello
5488830d6a Update support links 2017-06-20 18:43:18 -03:00
David Capello
028fb19b4e Fix problem using Shift+Pencil tool to draw a straight line with pixel-perfect mode 2017-06-19 17:40:31 -03:00
David Capello
a517ed2fff Minor change in ToolLoopBase() ctor 2017-06-19 17:39:08 -03:00
David Capello
76f2502b98 Start a straight line w/Shift key only if mouse is on the editor 2017-06-19 13:19:35 -03:00
David Capello
7323f1d071 Fix keyboard shortcuts with Shift+ key when pencil tool is active 2017-06-19 13:17:09 -03:00
David Capello
40136e5074 Fix problem using Shift key on non-active editor
This avoid using focusing a non-active/visible editor with Shift key if
there is no last position set in the active editor yet.
2017-06-19 12:34:56 -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
a370a6e719 Pencil: support multiple lines with Shift+click (#1387) 2017-06-16 16:42:55 -03:00
David Capello
265d18635c Pencil: Shift key shows a real-time preview of a straight line (#1387) 2017-06-16 16:28:48 -03:00
David Capello
34e794519c Fix reset last drawn point on undo/redo for draw line behavior (fix #1005) 2017-06-16 12:18:22 -03:00
David Capello
288b9aa8f9 Pass srcColor as argument to floodfill() 2017-06-15 15:24:27 -03:00
David Capello
dafaf8d59f Merge branch 'extensions' (#1403) 2017-06-14 21:02:00 -03:00
David Capello
9abd1bd1bc Update libarchive to avoid linking errors on Linux 2017-06-14 20:49:25 -03:00
David Capello
6abfde7054 Fix linking libarchive with app executable on MSVC 2017-06-14 20:02:48 -03:00
David Capello
10bcc83a37 Remove unused var name on catch() 2017-06-14 19:51:12 -03:00
David Capello
f37ccdc578 Replace taocpp/json with dropbox/json11 which compiles on MSVC 2017-06-14 19:50:44 -03:00
David Capello
25b8b7098e Add missing #include in load_matrix.h 2017-06-14 16:57:45 -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
7ba6893ba2 Change path of user extensions to extensions/ instead of data/extensions/ 2017-06-14 12:06:30 -03:00
David Capello
919ce7c9d0 Uncompress extension in a folder named as the "name" attribute in the package.json file 2017-06-13 17:06:45 -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
587b8b6dd7 Get default palette from extensions 2017-06-13 12:03:16 -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
a510643a7f Add kPackageJson constant 2017-06-12 15:30:18 -03:00
David Capello
d0c1be871a Merge branch 'multiple_layer_visibility' 2017-06-12 14:57:05 -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
70109e06f7 Disable libarchive tests and coverage 2017-06-12 13:20:32 -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
950955787f Load palettes from all possible places (fix #757)
- Extensions
- data/palettes/ in all locations
- palettes/ in the user dir
2017-06-10 17:12:55 -03:00
David Capello
b7b69ce538 Move palettes to extensions (#1403) 2017-06-10 16:44:19 -03:00
David Capello
199f56a5ad Fix generation of theme.xml.h file with the new location of the default theme.xml 2017-06-10 15:10:42 -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
fc7f96149f Add color names to apple-ii palette 2017-06-10 10:54:54 -03:00
David Capello
e53fd6f94c Include the complete opaque c0 and c1 color in the dithered gradient (two more steps) 2017-06-09 18:56:39 -03:00
David Capello
6c4218a8ac Fix bug w/gradient w/alpha < 0
As now we render the gradient, the RGB values are not premultiplied (as
with pixman).
2017-06-09 17:53:05 -03:00
David Capello
904d7dabe5 Avoid calling Vector2d::normalize()/magnitude() several times 2017-06-09 17:48:03 -03:00