mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[apps/graph] add methods to handle function names and colors.
Change-Id: Ic11f2dd6bd9cb473b436d5e7769e2660c173c733
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user