From e4aa82e62a092cce81e19e578f38f5fd60d7d398 Mon Sep 17 00:00:00 2001 From: Joachim Le Fournis Date: Wed, 12 May 2021 12:06:18 +0200 Subject: [PATCH] [shared/localization] Fix theme palette this fixes https://github.com/Omega-Numworks/Omega/issues/534 --- apps/shared/localization_controller.cpp | 4 ++-- apps/shared/localization_controller.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/shared/localization_controller.cpp b/apps/shared/localization_controller.cpp index ad7da122b..f518999b3 100644 --- a/apps/shared/localization_controller.cpp +++ b/apps/shared/localization_controller.cpp @@ -13,12 +13,12 @@ LocalizationController::ContentView::ContentView(LocalizationController * contro m_countryTitleMessage(KDFont::LargeFont, I18n::Message::Country), m_borderView(Palette::BackgroundApps) { - m_countryTitleMessage.setBackgroundColor(Palette::WallScreen); + m_countryTitleMessage.setBackgroundColor(Palette::BackgroundHard); m_countryTitleMessage.setAlignment(0.5f, 0.5f); assert(k_numberOfCountryWarningLines == 2); // textMessages is not overflowed I18n::Message textMessages[k_numberOfCountryWarningLines] = {I18n::Message::CountryWarning1, I18n::Message::CountryWarning2}; for (int i = 0; i < k_numberOfCountryWarningLines; i++) { - m_countryWarningLines[i].setBackgroundColor(Palette::WallScreen); + m_countryWarningLines[i].setBackgroundColor(Palette::BackgroundHard); m_countryWarningLines[i].setFont(KDFont::SmallFont); m_countryWarningLines[i].setAlignment(0.5f, 0.5f); m_countryWarningLines[i].setMessage(textMessages[i]); diff --git a/apps/shared/localization_controller.h b/apps/shared/localization_controller.h index c011df59e..327d3ef5d 100644 --- a/apps/shared/localization_controller.h +++ b/apps/shared/localization_controller.h @@ -45,7 +45,7 @@ protected: ContentView(LocalizationController * controller, SelectableTableViewDataSource * dataSource); SelectableTableView * selectableTableView() { return &m_selectableTableView; } - void drawRect(KDContext * ctx, KDRect rect) const override { ctx->fillRect(bounds(), Palette::WallScreen); } + void drawRect(KDContext * ctx, KDRect rect) const override { ctx->fillRect(bounds(), Palette::BackgroundApps); } void modeHasChanged(); private: