(Control) Ensure background-color blends fully with the control color 11/27811/3
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 19 Sep 2014 10:02:15 +0000 (11:02 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 22 Sep 2014 09:55:53 +0000 (02:55 -0700)
Change-Id: I361c9452b814b6aeb407ba2d99155606ab4aad0d

base/dali-toolkit/public-api/controls/control-impl.cpp
base/dali-toolkit/public-api/controls/control.h

index e45436f..74720d0 100644 (file)
@@ -206,6 +206,7 @@ void SetupBackgroundActor( Actor actor, Property::Index constrainingIndex, const
 {
   actor.SetColor( color );
   actor.SetPositionInheritanceMode( USE_PARENT_POSITION_PLUS_LOCAL_POSITION );
 {
   actor.SetColor( color );
   actor.SetPositionInheritanceMode( USE_PARENT_POSITION_PLUS_LOCAL_POSITION );
+  actor.SetColorMode( USE_OWN_MULTIPLY_PARENT_COLOR );
   actor.SetZ( BACKGROUND_ACTOR_Z_POSITION );
 
   Constraint constraint = Constraint::New<Vector3>( constrainingIndex,
   actor.SetZ( BACKGROUND_ACTOR_Z_POSITION );
 
   Constraint constraint = Constraint::New<Vector3>( constrainingIndex,
index 951c2b6..b72f20f 100644 (file)
@@ -324,6 +324,8 @@ public:
    * @brief Sets the background color of the control.
    *
    * @param[in] color The required background color of the control
    * @brief Sets the background color of the control.
    *
    * @param[in] color The required background color of the control
+   *
+   * @note The background color fully blends with the actor color.
    */
   void SetBackgroundColor( const Vector4& color );
 
    */
   void SetBackgroundColor( const Vector4& color );