Commit Graph

3310 Commits

Author SHA1 Message Date
David Capello
70f844380b Replace ISettings::get/setShowSpriteEditorScrollbars() with Preferences class 2015-05-13 10:41:55 -03:00
David Capello
c42ca3200f Remove (now) unused ISettings::get/setCenterOnZoom() 2015-05-13 10:34:00 -03:00
David Capello
aea07d06af Replace ISettings::get/setZoomWithScrollWheel() with Preferences class 2015-05-13 10:33:05 -03:00
David Capello
02d163b8d8 Add common keys in ui::Entry for OS X 2015-05-11 12:12:13 -03:00
David Capello
7450139898 Merge branch 'agateau-hide-hidden-files' 2015-05-11 12:02:14 -03:00
David Capello
15618c4fde Merge branch 'hide-hidden-files' of https://github.com/agateau/aseprite into agateau-hide-hidden-files 2015-05-11 12:01:31 -03:00
David Capello
5f82aa8f08 Fix split_filename_tests on OS X and Unix-like platforms 2015-05-11 11:44:56 -03:00
David Capello
96102e0e8c Remove lines that can fail in fs_tests 2015-05-11 11:33:20 -03:00
David Capello
bd7ad0cde0 Fix bug copying text on Windows clipboard
We were asking if the clipboard format was equal to Unicode Text to copy
Unicode text on it.
2015-05-11 11:26:37 -03:00
David Capello
7278f649f4 Select exact RGB match when we use eyedropper in RGB images
Fix #16
2015-05-11 11:25:53 -03:00
David Capello
2ac04c1c16 Show foreground/background color indicators in ColorBar
Related to #16 and #545
2015-05-11 10:53:50 -03:00
David Capello
9a6f635d31 Fix compilation error by implicit int <-> enum class conversion 2015-05-11 10:41:45 -03:00
David Capello
447bf3ef0b Add needed #include to use std::string type 2015-05-11 10:41:25 -03:00
David Capello
e05a635533 Fix usage of ImageRef shared pointer in app/util/clipboard.cpp 2015-05-11 10:41:11 -03:00
David Capello
063f1d173c Fix TipWindow() ctor signature 2015-05-11 10:40:37 -03:00
David Capello
cff735a7c8 Remove unused variables 2015-05-11 10:40:23 -03:00
David Capello
1583cd82bd Avoid using ESC key to close non-foreground windows 2015-05-11 09:53:45 -03:00
David Capello
300a5cc1cb Fix palette editor for one entry (non-selected range)
This fix the most common behavior where we are capable of use
eyedropper to pick just one color, and modify it with the editor.
2015-05-11 09:51:10 -03:00
David Capello
442d8c624a Fix triggering Editor's onCut() without mask when ColorBar's onCanCut() enables it
Asking for onCanCut/Copy/Paste/Clear just before onCut/Copy/Paste/Clear
in the same InputChainElement we ensure that the command for that specific
element can be used (and we aren't mixing onCans result of one input chain
element with the execution of the first input chain element command).
2015-05-11 09:37:39 -03:00
Aurélien Gâteau
1257060825 Do not list hidden files in file lists
This makes browsing $HOME a lot less cluttered.
2015-05-11 09:38:30 +02:00
David Capello
525e473fb5 Add relative mode in Palette Editor 2015-05-10 22:53:36 -03:00
David Capello
9fc7b993d4 Add ability to cut colors in the ColorBar 2015-05-10 21:36:46 -03:00
David Capello
cd1f764d85 Rename EditorState::onBefore/AfterChangeState to onLeave/EnterState()
This is to avoid confusion about the meaning of these callbacks.
2015-05-10 19:32:42 -03:00
David Capello
38526f3b9e Rename PaletteView::clearSelection() -> deselect() 2015-05-10 19:23:30 -03:00
David Capello
b5b59dece4 Add ability to clear colors from ColorBar 2015-05-10 19:19:48 -03:00
David Capello
c1324d196e Fix ColorBar::onCanPaste() to return true when we can still paste colors 2015-05-09 20:27:40 -03:00
David Capello
f395a0c768 Disable data recovery on trial mode 2015-05-09 20:18:10 -03:00
David Capello
2bbaa45844 Unify Cut/Copy/Paste/Clear handling with InputChain class 2015-05-09 19:55:33 -03:00
David Capello
e60236640a Destroy ColorMap remap information when Undo/Redo is executed 2015-05-09 16:18:27 -03:00
David Capello
11d86bb7c5 Add ability to copy colors using Ctrl + drag & drop 2015-05-09 15:57:46 -03:00
David Capello
cea0970d9d Fix several bugs with tooltip arrows/location
The tooltip arrow is now aligned to the target. And the tooltip is
relocated to the other side if it intersects its target bounds.
2015-05-09 13:20:57 -03:00
David Capello
06d1929729 Remove background color as an option in "New File" 2015-05-09 12:46:07 -03:00
David Capello
352eff2fd6 Add tooltips to ColorBar buttons 2015-05-09 12:30:05 -03:00
David Capello
62a3594598 Add ability to copy & paste colors with Ctrl+C and Ctrl+V
This commit includes the new doc::PalettePicks class. It's a helper
class to identify which entries are selected in the ColorBar.

We've removed the Copy/Paste buttons from the Palette Editor window.
2015-05-09 12:20:58 -03:00
David Capello
feb592db73 Remove Ramp and Quantize buttons from PaletteEntryEditor
These actions are now in the options above the ColorBar.
2015-05-08 17:37:41 -03:00
David Capello
1ef1f9e3e7 Add option for color quantization in the ColorBar options popup 2015-05-08 17:34:51 -03:00
David Capello
2995190d00 Fix crash making palette entries too small using scroll wheel 2015-05-08 17:00:44 -03:00
David Capello
ca1ebf02b5 Add option to create color gradients in the ColorBar 2015-05-08 16:55:08 -03:00
David Capello
5f46ffc5e0 Change position of "Remap" button so it's more noticeable 2015-05-08 16:17:42 -03:00
David Capello
d31f83e098 Add option to load/save default palette preset (fix #626)
Now the default palette is saved in the user configuration
directory, so we can set any palette as the default (it doesn't
matter if it's related or not to a file, it will be copied into
the user directory anyway).
2015-05-08 16:08:55 -03:00
David Capello
d3dbc11451 Add options to change palette entry size 2015-05-08 14:59:52 -03:00
David Capello
5437ccd2a2 Move palette menu to color bar options button 2015-05-08 14:36:54 -03:00
David Capello
6a9382a975 Add option to reverse colors 2015-05-08 14:28:27 -03:00
David Capello
575e94e559 Add popup menu to sort palette colors 2015-05-08 13:03:06 -03:00
David Capello
dab8c96fa8 Fix bug getting ANSI clipboard text on Windows
Sometimes the clipboard content is in CF_TEXT format and there is
no implicit CF_UNICODETEXT conversion.
2015-05-07 22:56:02 -03:00
David Capello
bea61fab88 subpixelPos can be in [-1,0] range when we zoom outside sprite bounds 2015-05-07 21:50:15 -03:00
David Capello
146460ea1b Merge branch 'master' of git@github.com:aseprite/aseprite.git 2015-05-07 19:19:46 -03:00
David Capello
804330788b Add right-click popup menu in play buttons to change animation speed (fix #595) 2015-05-07 19:08:24 -03:00
David Capello
0bd85f93a5 Merge pull request #666 from agateau/build-fixes
Fix build with g++ 4.9
2015-05-07 18:56:16 -03:00
Aurélien Gâteau
2855180dd9 Fix build with g++ 4.9 2015-05-07 22:59:10 +02:00