mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsFooter: add optional possibility to switch colored button frame
This commit is contained in:
@@ -69,6 +69,8 @@ class CComponentsFooter : public CComponentsHeader
|
||||
|
||||
///show button frame and background, default false
|
||||
bool btn_contour;
|
||||
///enable/disable button frame in icon color, predefined for red, green, yellow and blue, default disabled
|
||||
bool btn_auto_frame_col;
|
||||
|
||||
///property: set font for label caption, see also setButtonFont()
|
||||
Font* ccf_btn_font;
|
||||
@@ -95,6 +97,9 @@ class CComponentsFooter : public CComponentsHeader
|
||||
///add button labels with string label type as content, parameter 1 as vector, chain_width as int, label width as int
|
||||
void setButtonLabels(const std::vector<button_label_s>v_content, const int& chain_width, const int& label_width);
|
||||
|
||||
///enable/disable button frame in icon color, predefined for red, green, yellow and blue
|
||||
inline void enableButtonFrameColor(bool enable = true){btn_auto_frame_col = enable;}
|
||||
|
||||
///add button labels with old label type, count as size_t, chain_width as int, label width as int
|
||||
///NOTE: for compatibility with older button handler find in gui/widget/buttons.h, if possible, don't use this
|
||||
void setButtonLabels(const struct button_label * const content, const size_t& label_count, const int& chain_width = 0, const int& label_width = 0);
|
||||
|
Reference in New Issue
Block a user