Commit Graph

4611 Commits

Author SHA1 Message Date
David Capello
497cfa61a4 Implement app::IColorSource in color selectors 2016-03-18 23:35:23 -03:00
David Capello
07b67a66f7 Add app::IColorSource interface to get pixels from widgets from mouse pos
This is consumed by ColorButton which can be dragged to use a eyedropper
in different widgets.
2016-03-17 17:16:35 -03:00
David Capello
2d3ee0c802 Rotate foreground color hue by default with mouse wheel above ColorSelector 2016-03-17 16:42:50 -03:00
David Capello
99803c07ba Add mouse wheel behavior in color selector to rotate hue (fix #1012) 2016-03-17 16:40:34 -03:00
David Capello
449ae1d9e4 Add new app::ColorSelector to share behavior between ColorTintShadeTone/ColorSpectrum/ColorWheel 2016-03-17 16:37:31 -03:00
David Capello
1209037b02 Rename app::ColorSelector -> app::ColorPopup 2016-03-17 16:08:08 -03:00
David Capello
6d3c09d088 Use bearingX adjustment to render FreeType glyphs correctly 2016-03-17 11:11:08 -03:00
David Capello
f626837cb5 New command to add foreground/background color in the palette 2016-03-17 10:47:50 -03:00
David Capello
fdde32b808 Don't use UI to warn about sequences when --batch and --save-as are used
Fix #1018 introduced in 978145ba7a
2016-03-17 10:31:33 -03:00
David Capello
8304b7511d Fix FreeType2 font rendering and font height calculation
We need to catch the glyph's bearingY value to render each glyph
correctly.
2016-03-15 18:43:36 -03:00
David Capello
e0135d6f57 Add fixes for gcc/clang in ft::FaceFT 2016-03-15 17:45:55 -03:00
David Capello
fb10cf1d36 Simplify code in generic_surface.h for gcc/clang 2016-03-15 16:34:41 -03:00
David Capello
9784c0d455 Minor change to fix gcc/clang compilation errors 2016-03-15 16:33:11 -03:00
David Capello
2fd94ed884 Simplify ft::Face API
Changes:
* Added ft::FaceBase to create a future Face impl with HarfBuzz as text
  shaping engine
* Define ft::FaceBase::Glyph as the parameter given to the forEachGlyph
  parameter
* forEachGlyph and calcTextBounds
* Remove operator FT_Face (we can use FaceBase::isValid() to know if the
  face isn't null)
2016-03-15 15:15:37 -03:00
David Capello
6f0819fa30 Fix crash in GenericDrawTextSurface::drawChar() when a TTF is used with Unicode text 2016-03-15 15:10:56 -03:00
David Capello
cb4b4f8b4d Minor change don't use drawUIString() in FileList::onPaint() 2016-03-15 12:56:44 -03:00
Gabriel Rauter
90b1c243b0 Revert make use of aseprite thumbnail-generator"
Revert to basic native behavior.

This reverts commit b64ba236d3.
2016-03-15 14:32:05 +01:00
David Capello
8de92df6cc Minor fix to show text caret on ui::Entry when it's at the end 2016-03-14 16:52:44 -03:00
David Capello
779875e728 Remove unused pixman-version.h.cmake file 2016-03-14 15:49:31 -03:00
David Capello
eec2d64f57 Replace FreeTypeFont::height() impl 2016-03-14 12:40:28 -03:00
David Capello
69a1161f69 Fix Entry bugs handling the text caret
Added more checks and improve performance in Entry::setCaretPos()
2016-03-14 12:39:45 -03:00
David Capello
29f6db6f35 Widget::textLength() returns the number of (Unicode) characters in the text field 2016-03-14 12:38:11 -03:00
David Capello
fb6a1481f9 Select Unicode charmap 2016-03-14 12:09:59 -03:00
David Capello
dbf5d69219 Add a simple cache system for glyphs 2016-03-14 12:09:45 -03:00
David Capello
3b2ce80e37 Fix compilation error in generic_surface.h with gcc and clang 2016-03-14 12:06:50 -03:00
Nathaniel Sheppard
28a0c42503 Update solarized.gpl 2016-03-13 16:15:33 -07:00
Nathaniel Sheppard
899eee317b Added text editor color themes as palettes
Monokai and Solarized are two popular color schemes for text editors. They might be useful to UI developers using Aseprite.
2016-03-13 16:10:47 -07:00
Nathaniel Sheppard
c5bf298739 Added files via upload
Found this on my hard drive
2016-03-13 16:05:13 -07:00
Nathaniel Sheppard
cc9213cc62 Added more of Arne's pallets.
Pallets by Arne Niklas Jansson
http://androidarts.com/palette/16pal.htm
2016-03-13 16:02:33 -07:00
Nathaniel Sheppard
86be01f271 Update arne32.gpl
Added full URL
2016-03-13 15:40:56 -07:00
Nathaniel Sheppard
38b8c191a5 Update arne16.gpl
Added Arne's color names and full URL
2016-03-13 15:39:03 -07:00
David Capello
c0f402b945 Add she::Font::setAntialias() member function 2016-03-11 15:41:06 -03:00
David Capello
d020a19bd2 Add a simple cache mechanism to ft::Face (at the moment without cache) 2016-03-10 17:10:17 -03:00
David Capello
dfa6bcd16b Add a basic TrueType font impl to she library using FreeType library 2016-03-10 15:49:13 -03:00
David Capello
d33a2adb64 Add ft library (a freetype wrapper) 2016-03-10 11:21:03 -03:00
David Capello
64111bf991 Merge branch 'remove-locked-surface' into freetype-font
# Conflicts:
#	src/she/common/generic_surface.h
2016-03-09 12:31:42 -03:00
David Capello
0abe01c5f4 Merge she::LockedSurface/NonDisposableSurface with she::Surface 2016-03-09 11:00:17 -03:00
David Capello
0f60ca2e93 Fix #include in she/common/locked_surface.h 2016-03-08 18:41:02 -03:00
David Capello
d49d37302c Rename she::System::loadBitmapFont -> loadSpriteSheetFont 2016-03-07 17:48:35 -03:00
David Capello
97f1d0f895 Rename she::CommonFont to SpriteSheetFont 2016-03-07 17:39:02 -03:00
Gabriel Rauter
b64ba236d3 she/gtk: make use of aseprite thumbnail-generator
use the aseprite thumbnail generator for file preview
2016-03-07 18:59:15 +01:00
David Capello
a4159c0ddb Add educational license option 2016-03-07 11:46:46 -03:00
Gabriel Rauter
29eaaea1fd she/gtk: add a simple image preview
This adds a simple image preview for image formats supported by
Gdk::Pixbuf.
2016-03-07 15:46:08 +01:00
David Capello
f391be6824 Cache name and path in RecentFileItem
This is to avoid calling base.:get_file_name/path()
on each onPaint/SizeHint()
2016-03-04 17:30:12 -03:00
Gabriel Rauter
745fd180d4 Experimental native gtk3 file dialog
This pull request basicly adds the suport for gtk3 dialogs to she.
it is disabled by default and can be enabled with
cmake ... -DWITH_GTK_FILE_DIALOG_SUPPORT=ON ..
and needs the Experimental option "Use native file dialog"
enabled in aseprite enabled.
It is currently only available on *nix and has a external
dependencie on gtkmm >= 3.16 and glibmm >= 2.45

To have at least backwardcompatibility with ubuntu 15.10
the cmake option -D_WITH_DEPRECATED_GLIB_SUPPORT was added
to make use of a deprecated glibmm method.

Further testing ist need to see how far this backward
compatibility works, as of now ubuntu 12.04 does not seem to work.
But as ubuntu 12.04 will reach its end of support this summer and
ubuntu 15.04 having passed its end of life in february the question
is how far back this support is aimed for. Please enter the commit message for your changes. Lines starting
2016-03-04 21:22:44 +01:00
David Capello
75203037e2 Merge branch 'master' 2016-03-04 15:44:04 -03:00
David Capello
962928a609 Add the possibility to assign a keyboard shortcut to color quantization (#999) 2016-03-04 15:41:32 -03:00
David Capello
ac67cb9e49 Remove unused graphics from skin 2016-03-04 15:09:50 -03:00
David Capello
36eb38a5e7 Merge pull request #997 from Kirozen/patch-1
Add support for MinGW in base/fstream_path.h
2016-03-04 11:36:00 -03:00
Etienne Faisant
c7968d4f2d Update fstream_path.h
Fix build on Windows with MinGW
2016-03-04 15:03:46 +01:00