Commit Graph

2189 Commits

Author SHA1 Message Date
David Capello
dbe4f872c5 New icon 2014-06-04 00:44:43 -03:00
David Capello
786ae48ffa Add ASEPRITE1.0 block to .gif files 2014-06-04 00:27:34 -03:00
David Capello
289b729e3e ExpandCelCanvas: Fix problems generating Dirty area for cels with origin != 0,0 2014-06-03 20:23:53 -03:00
David Capello
badbb7ad32 Minor changes in ExpandCelCanvas 2014-06-03 20:22:50 -03:00
David Capello
7017332d62 Fix conversion of Indexed images to RGB when the layer is transparent 2014-06-03 00:05:57 -03:00
David Capello
df3b87c409 Update giflib to 5.1.0 2014-06-02 22:10:08 -03:00
David Capello
7ffce344bd Add CUSTOM_WEBSITE_URL option to test a local webserver 2014-06-02 21:31:44 -03:00
David Capello
ed6c0f986d ColorSelector: Add WarningIcon to add colors to the palette
Simplified the color selector UI. Now RGB/HSV colors are shown correctly
and a new warning icon/button is visible when the color is not part of
the current palette. This button can be used to quickly add the new entry
to the palette.
2014-06-01 18:15:11 -03:00
David Capello
f91f41a425 NewFile command: Don't change palette in grayscale images 2014-06-01 18:10:52 -03:00
David Capello
76afcfedac Change current palette after undo/redo 2014-06-01 18:10:26 -03:00
David Capello
c56d3d1170 Fix for PaletteView: redraw it when the palette is changed 2014-06-01 18:09:19 -03:00
David Capello
cf0df20a13 Fix warning message on debug 2014-06-01 18:08:47 -03:00
David Capello
f99423dec4 Add Palette::findExactMatch() member function 2014-06-01 18:08:31 -03:00
David Capello
2b1e190913 Update TODO items 2014-05-26 00:22:25 -03:00
David Capello
dc5a019c13 ContextBar: Add buttons to drop the selection or cancel the whole operation
- Add ContextBarObserver (and MovingPixelsState implements this interface)
- PixelMovements::discardImage() receives a "commit" flag to do a rollback
  of the operation if the user needs it.
2014-05-26 00:20:16 -03:00
David Capello
b05f2da0b2 ButtonSet: Add deselectItems() member function 2014-05-25 23:57:51 -03:00
David Capello
e5e4423730 ButtonSet: fix a bug using setSelectedItem() when there are no selected items 2014-05-25 23:57:31 -03:00
David Capello
1d8d39fc13 Add support to modify observers list when we are inside a notification 2014-05-25 23:54:56 -03:00
David Capello
1a07472824 Fix issue loading negative splitter position 2014-05-25 16:34:26 -03:00
David Capello
47b6df19ee Fix problems generating mouse messages with pos=0,0 2014-05-25 16:22:48 -03:00
David Capello
cbb70c8279 Timeline: make selected range outline a little bigger 2014-05-25 13:32:19 -03:00
David Capello
88ccba6da8 Fix thumbnails for transparent images 2014-05-25 12:06:55 -03:00
David Capello
08fb98d40d New notifications area at the top-right corner 2014-05-25 11:21:10 -03:00
David Capello
d18b9a403b Fix Onionskin_Merge type 2014-05-18 21:21:02 -03:00
David Capello
fc7e4123b4 Change default onionskin opacity step setting 2014-05-18 18:03:29 -03:00
David Capello
8d3b132082 Change ConfigureTimelinePopup layout 2014-05-18 16:49:24 -03:00
David Capello
a15aea5ed7 Add timeline options for onion skin, loop section, and animation direction
- Add red/blue onion skin type
- Add app::calculate_next_frame() function to calculate the next frame
  depending of the timeline configuration (loop range, animation direction)
- Add app::finder() to simplify the access to widgets loaded from xml files
2014-05-17 21:27:44 -03:00
David Capello
263f4b5479 Add flag to debug observers 2014-05-17 21:04:55 -03:00
David Capello
3c2e01b5d8 Replace the dummy developer "console" with a WorkspaceView
This is completely experimental stuff. Just added this because the previous
window doesn't make sense.
2014-05-09 01:01:59 -03:00
David Capello
43ed994812 Add more palettes 2014-05-09 00:30:15 -03:00
David Capello
695243006f Don't show onion skin in the mini editor 2014-05-08 08:50:21 -03:00
David Capello
391a5c0bf4 Add command to switch onion skin visibility 2014-05-08 08:47:45 -03:00
David Capello
a6d900fc2c Fix several old issues with indexed images and transparent color
- If we use a RGB color in a background layer (indexed image),
  and the first palette entry (transparent color) matches that RGB color,
  we can use that entry, because this is the background (the transparent
  color isn't transparent at all in the background layer).
- If we use the same RGB color in a transparent color, we've to avoid the
  transparent color, because the user want to paint with that specific
  solid color.
- Palette::findBestfit() receives a mask_index now, so we can find what
  color best matches a specific RGB avoiding that specific mask color,
  or we can use -1 to use any color (e.g. for background layers).
- Added app::ColorTarget() to simplify and fix color_utils::color_for_layer
  and app_get_color_to_clear_layer(), so now we can use the new findBestfit
  to return the transparent color for background layers (if a RGB color
  matches the transparent color RGB values).
- Removed fixup_color_for_layer/background() functions in color_utils
- Fix NewImageFromMask() to use the mask color to clear the image
- Improve the Editor pen preview (cursor.cpp) to draw the bounds of the
  pen when it will paint with the transparent color.
2014-05-08 00:30:36 -03:00
David Capello
5a45d1ec23 Remove the number of colors entry field from "New Sprite" dialog
This field is disabled, and the program isn't ready to support less than
256 colors in Indexed mode, so it's better if we remove this field to avoid
confusion.
2014-05-06 00:08:43 -03:00
David Capello
81d30fb24d Detect HTHSCROLL/HTVSCROLL as HTCLIENT in WM_NCHITTEST message
In this way we fix a bug where (sometimes) the mouse is not detected
as in the client area because it's over a system scrollbar.
2014-05-05 21:37:20 -03:00
David Capello
6aca409d84 Remove fixed item from TODO.md file 2014-05-05 21:29:53 -03:00
David Capello
fa204baf42 Easier way to reference the program website in commands 2014-05-05 21:28:58 -03:00
David Capello
e624b391c2 Fix quickref link 2014-05-05 21:28:20 -03:00
David Capello
5c54564a9d Quickref.pdf is not distributed anymore 2014-05-05 09:18:26 -03:00
David Capello
cd4e3aa122 Rename "Put Alpha" to "Set Alpha" 2014-05-04 22:20:33 -03:00
David Capello
ce7bb1b9dc Add "Lock Alpha" ink (issue #155) 2014-05-04 22:16:30 -03:00
David Capello
e266089368 Make IntersectClip non-copyable 2014-05-04 21:51:52 -03:00
David Capello
778578b210 Fix Editor scroll issues: we cannot process several WM_MOUSEMOVE in one UI loop-cycle
We have to wait to validate not-scrolled regions before we can use
Widget::scrollRegion() or Window::moveWindow() again. This is an issue
to see in the future (to avoid lossing mouse move messages). At the moment,
one solution is to use the last received mouse move message.
2014-05-04 21:40:46 -03:00
David Capello
94b2fb6dde Translate Widget::m_updateRegion field when the widget is moved 2014-05-04 21:32:43 -03:00
David Capello
b45cd3e07e Minor changes in Widget::scrollRegion() 2014-05-04 21:32:13 -03:00
David Capello
41863f9d3d Minor changes in Window::moveWindow() 2014-05-04 21:31:59 -03:00
David Capello
4035c6fc13 Fix call to update_mouse_position() when Allegro mouse position is used 2014-05-04 21:18:43 -03:00
David Capello
81d10f1c4f Add DEBUG_PAINT_EVENTS to manager.cpp 2014-05-04 21:17:45 -03:00
David Capello
ddf894867a Fix ToolBar behavior to avoid changing tools unintentionally
- Avoid opening other groups if the user is not with the mouse down
- A second MouseUp closes the group
2014-05-04 20:56:36 -03:00
David Capello
6414e37f9a Use IntersectClip when possible 2014-05-04 16:59:11 -03:00