From 7d30801e680bdb42cbb5e9ba3353758d67add551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 20 Nov 2017 18:01:49 +0100 Subject: [PATCH] [apps] Change output colors Change-Id: Ic8cb3f6bf3130c8b5e4c84edc1513353631d0336 --- apps/calculation/output_expressions_view.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/calculation/output_expressions_view.cpp b/apps/calculation/output_expressions_view.cpp index 11dc3d59d..5a8f518d2 100644 --- a/apps/calculation/output_expressions_view.cpp +++ b/apps/calculation/output_expressions_view.cpp @@ -8,7 +8,7 @@ namespace Calculation { OutputExpressionsView::OutputExpressionsView(Responder * parentResponder) : Responder(parentResponder), m_approximateExpressionView(), - m_approximateSign(KDText::FontSize::Large, I18n::Message::ApproximateEqual, 0.5f, 0.5f), + m_approximateSign(KDText::FontSize::Large, I18n::Message::ApproximateEqual, 0.5f, 0.5f, Palette::GreyDark), m_exactExpressionView(), m_selectedSubviewType(OutputExpressionsView::SubviewType::ExactOutput) { @@ -36,6 +36,11 @@ void OutputExpressionsView::reloadCell() { m_approximateExpressionView.setBackgroundColor(Palette::Select); } } + if (numberOfSubviews() == 1) { + m_approximateExpressionView.setTextColor(KDColorBlack); + } else { + m_approximateExpressionView.setTextColor(Palette::GreyDark); + } layoutSubviews(); EvenOddCell::reloadCell(); }