Commit Graph

5681 Commits

Author SHA1 Message Date
David Capello
018d5dc4a9 Fix some color indicators that aren't visible with specific selected colors 2017-05-30 14:38:48 -03:00
David Capello
afdf156a0e Keep alpha picking colors from bottom slider in color wheel 2017-05-30 13:57:44 -03:00
David Capello
629c359627 Draw alpha slider in ColorSliders correctly 2017-05-30 13:52:53 -03:00
David Capello
1576e42ff2 Add alpha slider in ColorPicker (#707) 2017-05-30 13:38:40 -03:00
David Capello
b8aa45023a Fix ColorWheel bottom slider 2017-05-30 11:55:56 -03:00
David Capello
e8c1975f63 Fix ColorWheel harmonies picker 2017-05-29 17:24:13 -03:00
David Capello
b7f8efc0a3 Add HSV-saturation/value sliders in ColorSpectrum/Wheel (related to #707)
Simplified ColorSelectors using more shared code in the base class.
2017-05-29 16:42:27 -03:00
David Capello
29a49ad7fa Add HSL color selection (related to #707) 2017-05-29 14:20:42 -03:00
David Capello
c297031152 Minor fix for Hue color slider in relative mode (from -180 to +180) 2017-05-26 15:55:53 -03:00
David Capello
b69e791207 Use color sliders for Hue/Saturation dialog 2017-05-26 15:40:21 -03:00
David Capello
9c39b4ad7a Use full color range from [0,0xffff] in gradients 2017-05-26 15:13:26 -03:00
David Capello
158ace5e2c Shift key can be used to snap angle on Gradient tool 2017-05-26 15:08:52 -03:00
David Capello
e316a49cb9 Fix crash using Import Sprite Sheet (active tool = nullptr) 2017-05-26 15:03:43 -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
54e8a59cbd Fix crash changing opaque/transparent color on MovingPixelsState state
The MovingPixelsState() ctor was generating a
MovingPixelsState::onTransparentColorChange() for the previous state
with a m_pixelsMovement==nullptr.
2017-05-26 12:00:15 -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
b4ea90a266 Add Console::hasText() so tests can check if there are errors in the console
This is useful in case that we want to test (e.g.) save/load document
operations that print errors in the console. So checking the console
output (this hasText flag) we can determine if the operation was
completely successful or failed.
2017-05-24 14:55:13 -03:00
David Capello
6f09a826fd Add assert on read_compressed_image() 2017-05-24 14:54:09 -03:00
David Capello
ae67cab015 Add dithering options for Gradient tool (#418) 2017-05-23 20:41:30 -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
523b6a0a51 Show a DitheringSelector item in the combobox when it's closed
In this way we can show listbox/custom items in the combobox when we
select an item instead of showing text-only (the ui::Entry).
2017-05-23 13:41:11 -03:00
David Capello
bcdf598392 Add widget to choose dithering algorithm + matrix 2017-05-22 15:44:08 -03:00
David Capello
829cc9ebec Fix ordered_dither_tests 2017-05-22 15:21:10 -03:00
David Capello
90132698a6 Move RenderTaskJob impl to render_task_job.cpp 2017-05-22 14:37:29 -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
David Capello
4b7a90318a Remove DocumentApi::flattenLayers() 2017-05-19 11:10:56 -03:00
David Capello
7837a123f8 Add option to merge layers in color mode conversion 2017-05-19 10:54:44 -03:00
David Capello
7eff2b83c4 Fail when an invalid algorithm is specified in --dithering-algorithm 2017-05-19 10:23:46 -03:00
David Capello
e3701940fb Add friendly names for ChangePixelFormat command 2017-05-19 10:23:26 -03:00
David Capello
03276e0264 Fix ordered dithering issues converting transparent layers + alpha palette entries 2017-05-19 10:17:22 -03:00
David Capello
c3fcacf3fb Preview the color conversion of the visible sprite area only 2017-05-18 15:19:57 -03:00
David Capello
131336d015 Add progress dialog/bar when we change color mode
Added a new app::RenderTaskJob to execute a lambda function as in a
background thread in a app::Job that can be used as a
render::TaskDelegate by some render functions.
2017-05-17 16:40:19 -03:00
David Capello
573cad4777 Add progress bar to color conversion
Unified render tasks stop/progress notifications in render::TaskDelegate
interface.
2017-05-17 15:25:40 -03:00
David Capello
7bc0c4fba5 Remove unused member variable from app::Job class 2017-05-17 14:00:47 -03:00
David Capello
5c07f86a66 Remove DocumentApi::setPixelFormat() member function 2017-05-17 13:57:36 -03:00
David Capello
16aeae0833 Add new ordered dithering algorithm 2017-05-17 13:32:34 -03:00
David Capello
cbee0862f3 Add a Color Mode conversion dialog with preview 2017-05-16 17:18:55 -03:00
David Capello
23272895c4 Move doc::DitheringMethod -> render::DitheringAlgorithm 2017-05-15 16:26:44 -03:00
David Capello
e4a4f44127 Add --color-mode CLI option 2017-05-15 15:21:02 -03:00
David Capello
1b57bb8ac3 Fix "height" field in the description of each data recovery view item 2017-05-10 15:13:30 -03:00
David Capello
d3ff1b8b14 Avoid clicking a bigger tag when we unfocus w/double-click 2017-05-10 15:09:08 -03:00
David Capello
97bfaa21ec Add gradient tool (fix #418) 2017-05-04 10:38:34 -03:00
David Capello
212c3e5126 Don't show & character in Select > Color Range (fix #1479) 2017-05-03 16:16:41 -03:00
David Capello
8de967dd37 Change ink processing impl 2017-05-03 12:59:57 -03:00
David Capello
3e3b0d8a35 Fix slice adjustments on Canvas Size and Sprite Size (fix #1470) 2017-04-26 16:14:11 -03:00
David Capello
d009a54992 osx/skia: Add support for X1/X2Button 2017-04-25 21:42:46 -03:00
David Capello
616c83732a x11: Implement setNativeMouseCursor() 2017-04-21 16:25:05 -03:00