Fixed TextLabel color 42/35442/1
authorPaul Wisbey <p.wisbey@samsung.com>
Sun, 15 Feb 2015 18:36:39 +0000 (18:36 +0000)
committerPaul Wisbey <p.wisbey@samsung.com>
Sun, 15 Feb 2015 18:52:23 +0000 (18:52 +0000)
Change-Id: I475d3d6bab0a70c25b36dec4eb7b614eed6b5a61

demo/dali-table-view.cpp

index f8755c8..0605e25 100644 (file)
@@ -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);