From 97cbd64a59eda7906e3daf2f280ef9c20ca33793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 23 Dec 2016 17:38:04 +0100 Subject: [PATCH] [apps/statistics] In calculations page, display results in grey Change-Id: I7070c874f025161f3daae6c18d36ca593972d270 --- apps/statistics/calculation_controller.cpp | 1 + escher/include/escher/even_odd_buffer_text_cell.h | 1 + escher/src/even_odd_buffer_text_cell.cpp | 3 +++ 3 files changed, 5 insertions(+) diff --git a/apps/statistics/calculation_controller.cpp b/apps/statistics/calculation_controller.cpp index ab681e656..1a536346b 100644 --- a/apps/statistics/calculation_controller.cpp +++ b/apps/statistics/calculation_controller.cpp @@ -12,6 +12,7 @@ CalculationController::CalculationController(Responder * parentResponder, Data * { for (int k = 0; k < k_maxNumberOfDisplayableRows; k++) { m_titleCells[k].setAlignment(1.0f, 0.5f); + m_calculationCells[k].setTextColor(Palette::DesactiveTextColor); } } diff --git a/escher/include/escher/even_odd_buffer_text_cell.h b/escher/include/escher/even_odd_buffer_text_cell.h index 738732a9a..88adadcef 100644 --- a/escher/include/escher/even_odd_buffer_text_cell.h +++ b/escher/include/escher/even_odd_buffer_text_cell.h @@ -9,6 +9,7 @@ public: EvenOddBufferTextCell(); void reloadCell() override; void setText(const char * textContent); + void setTextColor(KDColor textColor); int numberOfSubviews() const override; View * subviewAtIndex(int index) override; void layoutSubviews() override; diff --git a/escher/src/even_odd_buffer_text_cell.cpp b/escher/src/even_odd_buffer_text_cell.cpp index 3d1ca3c79..28611afb0 100644 --- a/escher/src/even_odd_buffer_text_cell.cpp +++ b/escher/src/even_odd_buffer_text_cell.cpp @@ -16,6 +16,9 @@ void EvenOddBufferTextCell::setText(const char * textContent) { m_bufferTextView.setText(textContent); } +void EvenOddBufferTextCell::setTextColor(KDColor textColor) { + m_bufferTextView.setTextColor(textColor); +} int EvenOddBufferTextCell::numberOfSubviews() const { return 1;