From b8a617644f3cf83f33d23c65e171f194c0a7f967 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 23 Mar 2022 21:08:44 +0100 Subject: [PATCH] widget/textbox: add member to get current text color --- src/gui/widget/textbox.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widget/textbox.h b/src/gui/widget/textbox.h index 2b70ce933..c7287f0e1 100644 --- a/src/gui/widget/textbox.h +++ b/src/gui/widget/textbox.h @@ -186,7 +186,8 @@ class CTextBox : public sigc::trackable //enable screen saving behind chars, is required for transparent text paint, returns true if mode was changed bool enableSaveScreen(const bool& mode = true); bool setText(const std::string* newText, int max_width = 0, bool force_repaint = true); - void setTextColor(fb_pixel_t color_text){ m_textColor = color_text;}; + void setTextColor(fb_pixel_t color_text){ m_textColor = color_text;} + fb_pixel_t getTextColor(){ return m_textColor;} void setBackGroundRadius(const int radius, const int type = CORNER_ALL){m_nBgRadius = radius; m_nBgRadiusType = type;}; void setTextBorderWidth(int Hborder, int Vborder); void setTextFont(Font* font_text);