Merge "Added style name for styling TextEditor ScrollBar" into devel/master
authorminho.sun <minho.sun@samsung.com>
Mon, 5 Jun 2017 05:27:16 +0000 (05:27 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 5 Jun 2017 05:27:17 +0000 (05:27 +0000)
dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp

index e103702..ca78a26 100644 (file)
@@ -1516,6 +1516,15 @@ void TextEditor::UpdateScrollBar()
 
     mScrollBar.SetScrollPropertySource(self, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize);
 
+    // Set style name of ScrollBar for styling
+    mScrollBar.SetStyleName("TextEditorScrollBar");
+    Toolkit::Control scrollIndicator = Toolkit::Control::DownCast( mScrollBar.GetScrollIndicator() );
+    if( scrollIndicator )
+    {
+      // Set style name of ScrollBarIndicator for styling
+      scrollIndicator.SetStyleName("TextEditorScrollBarIndicator");
+    }
+
     self.Add( mScrollBar );
   }
   else