mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 23:30:37 +01:00
[apps/graph/list] Improve the drawing of the list of functions
Change-Id: I5325ed1a8959b55958dfd14c111e5369aed4ce81
This commit is contained in:
@@ -12,5 +12,8 @@ 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;
|
||||
m_function->layout()->draw(ctx, KDPointZero, text, background);
|
||||
//Position the origin of expression
|
||||
KDSize expressionSize = m_function->layout()->size();
|
||||
KDPoint origin(0, 0.5f*(m_frame.height() - expressionSize.height()));
|
||||
m_function->layout()->draw(ctx, origin, text, background);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user