[apps] Change output colors

Change-Id: Ic8cb3f6bf3130c8b5e4c84edc1513353631d0336
This commit is contained in:
Émilie Feral
2017-11-20 18:01:49 +01:00
parent fe73c69b11
commit 7d30801e68

View File

@@ -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();
}