From f0c06a0405cb0eb554d19380cec8a95b35803c84 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 24 Aug 2018 17:17:13 +0200 Subject: [PATCH] [apps] Exam mode controller uses dark yellow buttons --- apps/exam_pop_up_controller.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/exam_pop_up_controller.h b/apps/exam_pop_up_controller.h index 5cf9e2b44..fd04f50dc 100644 --- a/apps/exam_pop_up_controller.h +++ b/apps/exam_pop_up_controller.h @@ -4,6 +4,12 @@ #include #include "exam_pop_up_controller_delegate.h" +class HighContrastButton : public Button { +public: + using Button::Button; + virtual KDColor highlightedBackgroundColor() const override { return Palette::YellowDark; } +}; + class ExamPopUpController : public ViewController { public: ExamPopUpController(ExamPopUpControllerDelegate * delegate); @@ -31,8 +37,8 @@ private: int numberOfSubviews() const override; View * subviewAtIndex(int index) override; void layoutSubviews() override; - Button m_cancelButton; - Button m_okButton; + HighContrastButton m_cancelButton; + HighContrastButton m_okButton; MessageTextView m_warningTextView; MessageTextView m_messageTextView1; MessageTextView m_messageTextView2;