[themes] Color with pointers

This commit is contained in:
Laury
2022-02-11 18:41:00 +01:00
parent 84d88a3e8d
commit 63d1e0ee4e
175 changed files with 546 additions and 652 deletions

View File

@@ -17,9 +17,9 @@ ListController::ListController(Responder * parentResponder, EquationStore * equa
ListController * list = (ListController *)context;
list->resolveEquations();
return true;
}, this), KDFont::LargeFont, Palette::ButtonText),
}, this), KDFont::LargeFont, *Palette::ButtonText),
m_modelsParameterController(this, equationStore, this),
m_modelsStackController(nullptr, &m_modelsParameterController, Palette::BannerFirstVariantText, Palette::BannerFirstVariantBackground, Palette::BannerFirstVariantBorder)
m_modelsStackController(nullptr, &m_modelsParameterController, *Palette::BannerFirstVariantText, *Palette::BannerFirstVariantBackground, *Palette::BannerFirstVariantBorder)
{
m_addNewModel.setAlignment(0.3f, 0.5f); // (EquationListView::k_braceTotalWidth+k_expressionMargin) / (Ion::Display::Width-m_addNewModel.text().size()) = (30+5)/(320-200)
for (int i = 0; i < k_maxNumberOfRows; i++) {
@@ -191,7 +191,7 @@ void ListController::resolveEquations() {
case EquationStore::Error::RequireApproximateSolution:
{
reinterpret_cast<IntervalController *>(App::app()->intervalController())->setShouldReplaceFuncionsButNotSymbols(resultWithoutUserDefinedSymbols);
stackController()->push(App::app()->intervalController(), Palette::BannerFirstText, Palette::BannerFirstBackground, Palette::BannerFirstBorder);
stackController()->push(App::app()->intervalController(), *Palette::BannerFirstText, *Palette::BannerFirstBackground, *Palette::BannerFirstBorder);
return;
}
default:
@@ -199,7 +199,7 @@ void ListController::resolveEquations() {
assert(e == EquationStore::Error::NoError);
StackViewController * stack = stackController();
reinterpret_cast<IntervalController *>(App::app()->intervalController())->setShouldReplaceFuncionsButNotSymbols(resultWithoutUserDefinedSymbols);
stack->push(App::app()->solutionsControllerStack(), Palette::BannerFirstText, Palette::BannerFirstBackground, Palette::BannerFirstBorder);
stack->push(App::app()->solutionsControllerStack(), *Palette::BannerFirstText, *Palette::BannerFirstBackground, *Palette::BannerFirstBorder);
}
}
}