mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 06:10:31 +01:00
[apps/graph/list] change color of selected function cell
Change-Id: Ib1069046e72ff9a809b18221d2a853f1ae82dcab
This commit is contained in:
@@ -13,7 +13,10 @@ FunctionCell::FunctionCell() :
|
||||
void FunctionCell::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
KDColor background = m_even ? KDColor(0xEEEEEE) : KDColor(0x777777);
|
||||
ctx->fillRect(rect, background);
|
||||
ctx->drawString(m_function->text(), KDPointZero, m_focused);
|
||||
KDColor text = m_focused ? KDColorBlack : KDColorWhite;
|
||||
KDColor textBackground = m_focused ? KDColorWhite : KDColorBlack;
|
||||
|
||||
ctx->drawString(m_function->text(), KDPointZero, text, textBackground);
|
||||
// m_function->layout()->draw(ctx, KDPointZero);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user