Commit Graph

5619 Commits

Author SHA1 Message Date
David Capello
3b2e76e745 Fix user data labels 2017-03-09 12:18:57 -03:00
David Capello
7ab2d114b7 Don't use Unicode chars on status bar to show colors
This avoid loading an Unicode font to show just the alpha letter.
2017-03-09 12:04:16 -03:00
David Capello
81bcc07457 Fix canvas size button set item borders
We must not activate HAS_TEXT flag on widgets without text on XML files processing the mnemonic character.
2017-03-09 12:00:32 -03:00
David Capello
4eab4cc6b6 Rename log prefix SKIN -> THEME 2017-03-08 19:25:03 -03:00
David Capello
0742dfad17 Fix some errors showing '&' char for the mnemonic text 2017-03-08 19:15:34 -03:00
David Capello
94dcfa7f35 Fix ColorButton font
- We've added a new "font" attribute in <style>s elements.
- Fonts aren't reset when we refresh the theme. This must be fixed in a future version when the theme can be completely reloaded.
2017-03-08 18:53:36 -03:00
David Capello
ff01a08b9e Fix style of mini-buttons in keyboard shortcuts list 2017-03-08 17:04:02 -03:00
David Capello
482f3eed0e Fix crashes editing composed unicode strings 2017-03-08 13:54:21 -03:00
David Capello
d9245588d0 Fix double dispose of fallback fonts 2017-03-07 18:15:02 -03:00
David Capello
147a8eb194 Add Unicode fonts on Windows for CJK 2017-03-07 14:53:40 -03:00
David Capello
e83f9c18aa Add support to load fonts w/Unicode filenames 2017-03-07 14:52:45 -03:00
David Capello
556dcceaff Implement FreeTypeFont::hasCodePoint() 2017-03-07 13:01:42 -03:00
David Capello
7cd92041b3 Draw missing glyphs w/codepoint 128 when using sprite sheet fonts 2017-03-07 13:00:01 -03:00
David Capello
e4577665c3 Remove unused variable 2017-03-07 11:06:58 -03:00
David Capello
46974e3345 Fix compilation on Windows 2017-03-07 09:24:35 -03:00
David Capello
643cad5c97 Add basic implementation of slice tool (#721) to modify theme parts
It still need support to export to .aseprite-data as <slice> XML elements, and animation support.
2017-03-06 19:27:43 -03:00
David Capello
fa1b15a3f5 Fix font_path_*.cpp filename for Unix-like platforms 2017-02-25 01:10:06 -03:00
David Capello
8af1f1c9fa Add missing CMakeLists.txt file for harfbuzz 2017-02-24 19:43:54 -03:00
David Capello
21afd6d8c8 Merge branches 2017-02-24 19:13:13 -03:00
David Capello
a730912d90 Add matriax8c palette by Davit Masia 2017-02-24 19:10:35 -03:00
David Capello
867ab891bf Add way to mix spritesheet+truetype fonts 2017-02-24 17:56:57 -03:00
David Capello
776566463b Merge branch 'harfbuzz' into new-theme 2017-02-21 18:07:11 -03:00
David Capello
5d7b62e652 Fix ui::Entry to handle composed Unicode chars correctly 2017-02-21 18:05:23 -03:00
David Capello
f08757d9d2 Remove ui::Widget::textLength() member function 2017-02-21 10:48:25 -03:00
David Capello
c0ae4a5d18 Cache HarfBuzz font in HBFace 2017-02-20 17:46:46 -03:00
David Capello
24faae2ca5 Use HarfBuzz to render combining characters correctly 2017-02-20 17:14:41 -03:00
David Capello
44feaf6676 Move ft::ForEachGlyph to ft/algorithm.h 2017-02-20 09:34:07 -03:00
David Capello
84c4d1af93 Fix view borders 2017-02-17 18:26:08 -03:00
David Capello
921c5c8ad1 Move ui::Separator drawing code to new styles 2017-02-17 18:23:21 -03:00
David Capello
86f138a714 Move ui::Splitter painting code to new styles 2017-02-17 16:17:00 -03:00
David Capello
cc20f0a21e Remove Theme::paintDesktop() 2017-02-17 14:37:58 -03:00
David Capello
fad236ad22 Fix editor view background/scrollbar union 2017-02-17 14:23:01 -03:00
David Capello
a62f12ad09 Move all code to draw windows to ui-lib w/new styles 2017-02-17 14:18:47 -03:00
David Capello
2883a70e25 Fix Close button on About dialog 2017-02-17 13:59:17 -03:00
David Capello
7163673cba Fix keep_selection_after_clear tooltip in Preferences dialog 2017-02-17 13:45:36 -03:00
David Capello
235011e169 Add "const" to several Theme and Widget function members 2017-02-15 16:44:50 -03:00
David Capello
7cb41729ab Convert label and view into new styles
In this way the WidgetLoader looks for new styles only.
2017-02-14 14:55:45 -03:00
David Capello
17151cddcd Move mnemonic key as a property of ui::Widget
In this was we can process the text string just one time to remove the
character preceded by '&' that will be finally acts as a mnemonic. This
simplifies the rendering and text measure code too.
2017-02-14 14:16:37 -03:00
David Capello
bb4faca1d1 New Style class in "ui" layer to paint widgets (only button at this moment)
This new ui::Style should finally replace the old app::skin::SkinStyle
class. At this moment both implementations are working to avoid an
huge refactor in just one commit.

- Added new ui::Style property in ui::Widget.
- Removed old code to set the button "bevel" (removed
  app::setup_bevels() functions).
- Removed setup_look() function and Left/RightButtonLooks.
- Removed check_button_new() function.
- Removed ui::Theme::paintButton/ComboBoxButton() functions.
2017-02-13 18:34:23 -03:00
David Capello
75020d9405 Simplify window icons in theme definition 2017-02-10 18:38:08 -03:00
David Capello
97809952eb Remove some face colors from theme.xml using the center slide instead 2017-02-10 17:49:37 -03:00
David Capello
f7903a74de Add ui::Theme::drawSlices() member function 2017-02-09 17:01:43 -03:00
David Capello
e6fd892a40 Change themes folder from "data/skins" to "data/themes" 2017-02-09 13:18:44 -03:00
David Capello
7e6fc5a815 Move drawTextBox() function inside Theme class 2017-02-08 15:00:07 -03:00
David Capello
6c9c0066a0 Replace ui::CurrentTheme with ui::set/get_theme() 2017-02-08 14:50:58 -03:00
David Capello
d9817b888c Fix Move tool w/auto select when a range is selected in the Timeline 2017-02-08 00:28:46 -03:00
David Capello
7c57ec40fc Merge branches 2017-02-07 19:09:36 -03:00
David Capello
9016d8635b Fix problems on ui::Entry() with TrueType fonts
Fixed several problems drawing and selecting text with TrueType fonts.
2017-02-07 19:05:47 -03:00
David Capello
a4065d07ef Update information about compressed data in .ase file format specs 2017-02-07 19:00:48 -03:00
David Capello
b2762a7468 Update laf submodule 2017-02-07 11:03:45 -03:00