From cf206a27b278fb2a08c92aec37741e6afb9df6d4 Mon Sep 17 00:00:00 2001
From: Paul Wisbey
Date: Sun, 15 Feb 2015 18:36:39 +0000
Subject: [PATCH] Fixed TextLabel color
---
demo/dali-table-view.cpp | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
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);
--
libgit2 0.21.4