From 0cdb555f07b0944e503809e60d47ff5fde4af0f1 Mon Sep 17 00:00:00 2001 From: "minho.sun" Date: Wed, 31 May 2017 21:09:27 +0900 Subject: [PATCH 1/1] Added style name for styling TextEditor ScrollBar Added style name for styling TextEditor ScrollBar. ScrollBar : TextEditorScrollBar ScrollBar Indicotor : TextEditorScrollBarIndicator Change-Id: Icfc6ca896635a26246fc8aee2d8437c675e3768b Signed-off-by: minho.sun --- .../internal/controls/text-controls/text-editor-impl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp index 5be99a6..ff9a1f5 100644 --- a/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp @@ -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 -- 2.7.4