Fix PlaceholderTextColor update issue 01/264201/2
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 14 Sep 2021 09:51:34 +0000 (18:51 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Wed, 15 Sep 2021 04:37:05 +0000 (13:37 +0900)
There is a problem that the color does not change when
PLACEHOLDER_TEXT_COLOR is dynamically set.
This patch updates the text color in SetPlaceholderTextColor().

Change-Id: Id4b5afafdab28756018394ea6c655cfa1cd10a42
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/text-controller-placeholder-handler.cpp

index 301dbcb..d649371 100644 (file)
@@ -322,6 +322,8 @@ void Controller::PlaceholderHandler::SetPlaceholderTextColor(Controller& control
   if(controller.mImpl->IsShowingPlaceholderText())
   {
     controller.mImpl->mModel->mVisualModel->SetTextColor(textColor);
+    controller.mImpl->mModel->mLogicalModel->mColorRuns.Clear();
+    controller.mImpl->mOperationsPending = static_cast<OperationsMask>(controller.mImpl->mOperationsPending | COLOR);
     controller.mImpl->RequestRelayout();
   }
 }