diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index dacb4574e..8dc11c77b 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -187,3 +187,13 @@ void CComponentsFooter::setButtonLabel(const char *button_icon, const neutrino_l setButtonLabel(button_icon, txt, chain_width, label_width); } + +void CComponentsFooter::showButtonContour(bool show) +{ + btn_contour = show; + if (chain) { + for (size_t i= 0; i< chain->size(); i++) + chain->getCCItem(i)->doPaintBg(btn_contour); + } +} + diff --git a/src/gui/components/cc_frm_footer.h b/src/gui/components/cc_frm_footer.h index fcb547616..81eefd1bb 100644 --- a/src/gui/components/cc_frm_footer.h +++ b/src/gui/components/cc_frm_footer.h @@ -91,7 +91,7 @@ class CComponentsFooter : public CComponentsHeader void setButtonLabel(const char *button_icon, const neutrino_locale_t& locale, const int& chain_width = 0, const int& label_width = 0); ///causes show/hide countour of button frame and background, parameter bool show, default= true - void showButtonContour(bool show = true){btn_contour = show;}; + void showButtonContour(bool show = true); ///property: set font for label caption, parameter as font object, value NULL causes usage of dynamic font void setButtonFont(Font* font){ccf_btn_font = font;};