[apps/graph] add methods to handle function names and colors.

Change-Id: Ic11f2dd6bd9cb473b436d5e7769e2660c173c733
This commit is contained in:
Émilie Feral
2016-09-30 17:53:17 +02:00
parent b250795e2d
commit e109a23485
5 changed files with 55 additions and 22 deletions

View File

@@ -13,6 +13,5 @@ void FunctionExpressionView::drawRect(KDContext * ctx, KDRect rect) const {
// Select text color according to the state of the function
bool active = m_function->isActive();
KDColor text = active ? KDColorBlack : FunctionCell::k_desactiveTextColor;
ctx->drawString(m_function->text(), KDPointZero, text, background);
// m_function->layout()->draw(ctx, KDPointZero);
m_function->layout()->draw(ctx, KDPointZero, text, background);
}