Remove CAPI from Toolkit Change-Id: Ie49afb8896c1c14e225ef77ad395f95a28f53201
Move the logic of constraint application from ItemView to the layout Change-Id: I1e8b8e86a8f5a6610bac207176347e68413e36f9 Signed-off-by: Richard Huang <r.huang@samsung.com>
Add the text input cursor color property. [problem] The cursor color doesn't change when the system theme is changed. [cause] Not implement. [solution] Implement. Change-Id: Ia94b617be365d54aba7e94671a4ed70036e5bd4d Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
ScrollView - Remove separate X and Y scroll properties as these are now redundant and only mirror the pre position Vector3 property. This removes 2 constraints and 2 properties from ScrollView Change-Id: I63c6efd6d7f934e8f013733ac078b681ecac237a Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com> Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
(ScrollView) Remove redundant scaling & rotation functionality [problem] ScrollView, as the name suggests, should only scroll, not scale or rotate. Scaling and rotation does not work propertly so there are a lot of calculations which are not needed. [solution] Remove scaling functionality and deprecate APIs. Change-Id: I22bc2755cfe74753c0063cc9644995c2388eeab0 Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
ScrollView - Added APIs for minimum pan speed/distance before being considered a flick [problem] Application could not change minimum flick speed and distance [solution] Added APIs to change minimum flick speed/distance Change-Id: Ia1941662a04fe8ec3d058bd926c9e0f6a4b73b23 Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com> Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
Prevent fighting of setting scroll position property by ItemView and ScrollBar [problem] When ItemView is still scrolling, touch and drag the fast scroll bar, the fast scroll bar is not responsive for some time and ItemView scrolls to the wrong position sometimes. [cause] When scroll position property is being animated by ItemView, if something else (e.g. ScrollBar) tries to modify the scroll position property at the same time, there is a fighting of setting the same property between the two. [solution] Cancel scroll animation when it is in fast scroll mode. Change-Id: I3de03d7b21b929fe527b907e58464896b774c489 Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
New Bouncing Effect Patch 1: Add API CreateBouncingEffectActor to creates a Dali::Actor to display the bouncing effect for overshoot Patch 5: Integrate with ScrollView, ItemView Patch 7: Add PROPERTY_OVERSHOOT_EFFECT_COLOR to allow the StyleManager to apply the theme color Reduce the height of the effect when the width of scrollable is less than 180px patch 9: Add the script for overshoot-effect-color patch 14: fix the size bug Change-Id: I2f979ff59ab78b4ce8931b36d0bc2dff48dc7901 Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
Allow configurable speed factor when ItemView is being swiped. [problem] No way to configure scroll speed factor separately while panning or flicking. Therefore for some layouts you can't get a value to make both panning and flicking work. [cause] Only one scroll speed factor for both panning and flicking. [solution] New API for configurable speed factor while flicking. Change-Id: Ia58a4346db0923410fd61005efb38f4d1ca4a843 Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
Optimization to reduce Handle size by 50% [problem] Memory usage is too high, event-thread operations are too heavy. [cause] Too much Dali::Handle data copied around. [solution] Remove all virtual methods from handles, to avoid needing a C++ vptr Change-Id: I87c8c526be53413e895a88ac8a355083a4797d8e Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
TextInput Popup border colour styling and missing offset property registration. [problem] Scripting can not be used to change the border colour of the popup [solution] Add Property for border colour Change-Id: I99f45fee20c1ba26c75155cae53e924a09fd802f Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
TextInput Popup has a tail which points to the TextInput [problem] User may not know the cut and paste popup applies to the current TextInput [solution] Display a tail which points to the TextInput. Change-Id: I712eb34ce00fbf3a02e7fe4bd975fc556b5c97e6 Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
Optimized size negotiation 1. Remove size negotiation from scrollable things as they are not layout containers (yes, ItemView does not do size negotiations) 2. Make size negotiation containers members of relayout controller so we avoid hundreds of memory allocations per frame 3. Reduce the overhead of size negotiation request by having a static flag instead of hundreds of handle creations and dynamic casts etc Change-Id: I9f11a45a70b262c0c6a07358350a8203c21fc2ce Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
ScrollView - Stop Timer running in homescreen idle state [problem] Load analyzer shows homescreen is running in idle state [cause] ScrollView refresh timer is running continuously [solution] Replaced Timer with PropertyNotification, added new API's for ScrollUpdateDistance instead of RefreshInterval Change-Id: Id5a0dfa15752d805703d2d88845f1462d2b07030 Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com> Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
TextInput uses style properties for PopUp and Highlight [problem] Popup button order, colour of background, colour of pressed buttons and highlight predefined in internal code [solution] Dali Properties now represent the above settings so can be defined in a JSON file or via the Public API. Change-Id: Ia33d63d95cfdcbfb095a31c1cf514368f2683814
(ScrollView) Updates to scroll view internals to improve responsiveness and smoothness of visual actions [Problem] Overshoot indicator could occasionally remain on screen, overshoot would prevent panning in opposite direction until pan returned to point where overshoot started [Solution] Replaced numerous constraints with property notifications. Implemented the new vector component animation to remove need for separate internal x/y components. First stage of constraint reduction on ScrollView, more to follow Pre clamp scroll value is now snapped back to clamped position using animation and no longer needs a constraint to follow old internal x/y components Made functionality of overshoot more solid by making it directly dependant on pre clamped scroll and post clamp scroll values now that animation is done elsewhere. Overshoot no longer instantly flicks back to 0 if user releases and restarts a gesture before values have finished animating back If a pan has locked to an axis it now remains locked if user releases and starts another pan before scrolling has completed, preventing issue where a vertical page scroll could be started in the middle of a horizontal page scroll, which brakes the appearance of all page scroll effects. Change-Id: I73e8ca71f5ffd8eb3c8a1fbf91823881ac4bb2ce Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Conversion to Apache 2.0 license Change-Id: Ieba1af3439cf87694a6893c684b78dc13de0ede9