mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[apps] Change output colors
Change-Id: Ic8cb3f6bf3130c8b5e4c84edc1513353631d0336
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user