Minor reduce textlabel creation time. 1. Reduce the multiply operations during TypeSetter combine each glyph on bitmap. 2. Every textlabel hold it's own TextController and each TextController try to get StyleManager's configure. In this case, there was some operation from const Property::Map to Property::Map. It required vector copy. So I make that we don't copy the vector anymore. Change-Id: Ie2853b54d8dc0e6685bb11afe7d91faaae0b5acd Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Support to use NPatchImage in brokenImage Support to use NpatchImage in broken Image. Application can use custom broken image from this patch. when they set 3 type of broken image(small,normal,large), dali show the proper broken image considering size. Change-Id: I7e2be85d4715d07356fd2782be2d011931fde5c2
CMake - Option added to define the default toolkit resource path. * Currently the resources folder is harcoded in compile time. This works on devices where applications are always installed in specific folders but doesn't work in other platforms like MS Windows where the user can install the application in any folder. * An option has been added to the CMakeLists.txt file. By default the resource folder is hardcoded. This behaviour can be disabled by setting the option -DUSE_DEFAULT_RESOURCE_DIR=OFF and setting environment variables in installation time for DALI_IMAGE_DIR, DALI_SOUND_DIR, DALI_STYLE_DIR, DALI_STYLE_IMAGE_DIR and DALI_DATA_READ_ONLY_DIR. Change-Id: I3eea313da150f577e25171f2d5fb4791209f5181 Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
Added config section to stylesheet Added config section to stylesheet. User can set configuration for dali-toolkit via this section. Currently, user can use only "alwaysShowFocus" which is for KeyboardFocusManager. ( If true, shows focus indicator even if there is no KeyEvent. ) Change-Id: Iac2a6202c22a6026c63b3f42542c99341e73ad7b Signed-off-by: minho.sun <minho.sun@samsung.com>
Fix feedback style error message. Fix feedback style error message. It ocurred because of empty path. Give default theme path when applying default theme instead of empty path. Plus, add default-feedback-theme.json to resource package. Change-Id: I2459cc39a798bf3b86c688275feae8957798bcd9 Signed-off-by: minho.sun <minho.sun@samsung.com>
Updating Builder and Control to handle styled States A) Added state and subState properties to control B) Updated builder to parse for states/visuals/transitions C) Added new Dictionary and Style classes to store style info D) Stored off new style data into builder E) Added top level state change Change-Id: I75f2d9746bdfcdbd9fef96d845396ff8c5d51ca1 Signed-off-by: David Steele <david.steele@samsung.com>
Changed styles to use case-insensitive matching Modified style sheets to use capitalized names for the styles to aid readability. Match algorithm changes control / style name to lower case, then compares it to the style names that are also down-cased. Change-Id: I048da5a7b8d00350669d11d797fab93f148dbdac Signed-off-by: David Steele <david.steele@samsung.com>
Moved StyleManager to the public API Cleaned up the API (removed Orientation code), fixed comments, added @SINCE_1_1.32 macros, doxygen groups. Change-Id: I954f627a3db63714471d8440b65fc1afbc8dc44e Signed-off-by: David Steele <david.steele@samsung.com>
Changed signal order for StyleManager With this change, StyleManager will first trigger an internal signal that is picked up by all Controls, then will emit StyleChanged to signal to the application that the theme or system fonts have changed and that the styling has completed. Change-Id: I54ced7ad5ffc08bf5e55c9895be03848bea6b7a6 Signed-off-by: David Steele <david.steele@samsung.com>
Prevented json array of numbers appending on merge If 2 JSON files are merged into the same JSON parser (by calling Parse(first) then calling Parse(second) ), then currently, nodes in the tree with the same key but with differing types are overridden, but object and array types are merged. This is problematic for styling, where colors are represented as JSON arrays. Changed matching arrays of numbers to override rather than merge. Change-Id: Ia7a37a16919aa8648e7fe34430c5abf04cfaddb4 Signed-off-by: David Steele <david.steele@partner.samsung.com>