From 445fd941cc77485eaed53d14fc8a76ad40ca8d90 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 17 Dec 2020 10:10:58 +0100 Subject: [PATCH] [Button] Add textFlags to constructor --- radio/src/thirdparty/libopenui/src/button.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/button.h b/radio/src/thirdparty/libopenui/src/button.h index aa04227b6..5c9602ea3 100644 --- a/radio/src/thirdparty/libopenui/src/button.h +++ b/radio/src/thirdparty/libopenui/src/button.h @@ -28,8 +28,8 @@ constexpr WindowFlags BUTTON_CHECKED_ON_FOCUS = FORM_FLAGS_LAST << 3u; class Button: public FormField { public: - Button(FormGroup * parent, const rect_t & rect, std::function pressHandler = nullptr, WindowFlags windowFlags = 0): - FormField(parent, rect, windowFlags), + Button(FormGroup * parent, const rect_t & rect, std::function pressHandler = nullptr, WindowFlags windowFlags = 0, LcdFlags textFlags = 0): + FormField(parent, rect, windowFlags, textFlags), pressHandler(std::move(pressHandler)) { } @@ -87,8 +87,8 @@ class Button: public FormField class TextButton: public Button { public: - TextButton(FormGroup * parent, const rect_t & rect, std::string text, std::function pressHandler = nullptr, WindowFlags windowFlags = BUTTON_BACKGROUND): - Button(parent, rect, std::move(pressHandler), windowFlags | OPAQUE), + TextButton(FormGroup * parent, const rect_t & rect, std::string text, std::function pressHandler = nullptr, WindowFlags windowFlags = BUTTON_BACKGROUND, LcdFlags textFlags = 0): + Button(parent, rect, std::move(pressHandler), windowFlags | OPAQUE, textFlags), text(std::move(text)) { }