[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,21 +17,21 @@ using namespace Shared;
namespace Solver {
constexpr KDColor SolutionsController::ContentView::k_backgroundColor;
KDColor const * SolutionsController::ContentView::k_backgroundColor = Palette::BackgroundAppsSecondary;
SolutionsController::ContentView::ContentView(SolutionsController * controller) :
m_warningMessageView0(KDFont::SmallFont, I18n::Message::Default, 0.5f, 0.5f, KDColorBlack, k_backgroundColor),
m_warningMessageView1(KDFont::SmallFont, I18n::Message::Default, 0.5f, 0.5f, KDColorBlack, k_backgroundColor),
m_warningMessageView0(KDFont::SmallFont, I18n::Message::Default, 0.5f, 0.5f, KDColorBlack, *k_backgroundColor),
m_warningMessageView1(KDFont::SmallFont, I18n::Message::Default, 0.5f, 0.5f, KDColorBlack, *k_backgroundColor),
m_selectableTableView(controller, controller, controller, controller),
m_displayWarningMoreSolutions(false)
{
m_selectableTableView.setBackgroundColor(k_backgroundColor);
m_selectableTableView.setBackgroundColor(*k_backgroundColor);
m_selectableTableView.setVerticalCellOverlap(0);
}
void SolutionsController::ContentView::drawRect(KDContext * ctx, KDRect rect) const {
if (m_displayWarningMoreSolutions) {
ctx->fillRect(KDRect(0, 0, bounds().width(), k_topMargin), k_backgroundColor);
ctx->fillRect(KDRect(0, 0, bounds().width(), k_topMargin), *k_backgroundColor);
}
}