Added style name for styling TextEditor ScrollBar 89/131989/1
authorminho.sun <minho.sun@samsung.com>
Wed, 31 May 2017 12:09:27 +0000 (21:09 +0900)
committerminho.sun <minho.sun@samsung.com>
Wed, 31 May 2017 12:09:27 +0000 (21:09 +0900)
Added style name for styling TextEditor ScrollBar.

ScrollBar : TextEditorScrollBar
ScrollBar Indicotor : TextEditorScrollBarIndicator

Change-Id: Icfc6ca896635a26246fc8aee2d8437c675e3768b
Signed-off-by: minho.sun <minho.sun@samsung.com>
dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp

index 5be99a6..ff9a1f5 100644 (file)
@@ -1459,6 +1459,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