From: Paul Wisbey Date: Sun, 15 Feb 2015 18:36:39 +0000 (+0000) Subject: Fixed TextLabel color X-Git-Tag: new_text_0.1~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F35442%2F1;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Fixed TextLabel color Change-Id: I475d3d6bab0a70c25b36dec4eb7b614eed6b5a61 --- diff --git a/demo/dali-table-view.cpp b/demo/dali-table-view.cpp index f8755c8..0605e25 100644 --- a/demo/dali-table-view.cpp +++ b/demo/dali-table-view.cpp @@ -251,6 +251,9 @@ void DaliTableView::Initialize( Application& application ) const Vector2 stageSize = Stage::GetCurrent().GetSize(); + TextAbstraction::FontClient fontClient = TextAbstraction::FontClient::Get(); + fontClient.SetDpi( 96, 96 ); + // Background mBackground = CreateBackground( mBackgroundImagePath ); // set same size as parent actor @@ -521,13 +524,13 @@ Actor DaliTableView::CreateTile( const std::string& name, const std::string& tit image.Add( stencil ); } - TextLabel label = TextLabel::New(); - label.SetParentOrigin( ParentOrigin::TOP_LEFT ); - label.SetAnchorPoint( AnchorPoint::TOP_LEFT ); - label.SetProperty( TextLabel::PROPERTY_MULTI_LINE, true ); - label.SetProperty( TextLabel::PROPERTY_TEXT, title ); - label.SetColor( Color::WHITE ); - content.Add( label ); + TextLabel label = TextLabel::New(); + label.SetParentOrigin( ParentOrigin::TOP_LEFT ); + label.SetAnchorPoint( AnchorPoint::TOP_LEFT ); + label.SetProperty( TextLabel::PROPERTY_MULTI_LINE, true ); + label.SetProperty( TextLabel::PROPERTY_TEXT, title ); + label.SetColor( Color::BLACK ); + content.Add( label ); // Set the tile to be keyboard focusable tile.SetKeyboardFocusable(true);