From bf844b5a1982a6ff32fd38b8f5aa92672f1aa403 Mon Sep 17 00:00:00 2001
From: Paul Wisbey
Date: Fri, 3 Mar 2017 17:39:48 +0000
Subject: [PATCH] [3.0] Fix for TextSelectionToolbar overshootEffectColor
styling
Change-Id: I9ee4b4182964cccdf0b1540e1495fc5d325227f8
---
.../text-controls/text-selection-toolbar-impl.cpp | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp
index f1d1d71..d0c8d85 100644
--- a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp
+++ b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp
@@ -29,6 +29,7 @@
// INTERNAL INCLUDES
#include
#include
+#include
namespace Dali
{
@@ -350,9 +351,21 @@ void TextSelectionToolbar::ConfigureScrollview( const Property::Map& properties
Property::Index setPropertyIndex = mScrollView.GetPropertyIndex( propertyPair.first );
if( setPropertyIndex != Property::INVALID_INDEX )
{
- // If the conversion worked, we have a valid property index,
- // Set the property to the new value.
- mScrollView.SetProperty( setPropertyIndex, propertyPair.second );
+ // Convert the string representation of a color into a Vector4
+ if( setPropertyIndex == Toolkit::Scrollable::Property::OVERSHOOT_EFFECT_COLOR )
+ {
+ Vector4 color;
+ if( ConvertPropertyToColor( propertyPair.second, color ) )
+ {
+ mScrollView.SetOvershootEffectColor( color );
+ }
+ }
+ else
+ {
+ // If the conversion worked, we have a valid property index,
+ // Set the property to the new value.
+ mScrollView.SetProperty( setPropertyIndex, propertyPair.second );
+ }
}
}
--
2.7.4