From c19ee9da0c63f41005be2fbe9e358ba5fbd88524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 16 Sep 2016 10:26:30 +0200 Subject: [PATCH] [apps/graph/list] change color of selected function cell Change-Id: Ib1069046e72ff9a809b18221d2a853f1ae82dcab --- apps/graph/list/function_cell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/graph/list/function_cell.cpp b/apps/graph/list/function_cell.cpp index e17d4f575..8bfdfb529 100644 --- a/apps/graph/list/function_cell.cpp +++ b/apps/graph/list/function_cell.cpp @@ -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); }