CHintBox/CMsgBox: use frames as default for better highlighting

This commit is contained in:
2019-10-27 16:24:47 +01:00
parent c82d1a9b27
commit 9234f67d98
4 changed files with 133 additions and 29 deletions

View File

@@ -43,6 +43,7 @@
#define W_FRAME OFFSET_INNER_MID
//frame color around hint/message box
#define HINTBOX_DEFAULT_FRAME_COLOR COL_FRAME
#define HINTBOX_DEFAULT_FRAME_WIDTH OFFSET_INNER_SMALL
#define TIMEOUT_BAR_HEIGHT OFFSET_SHADOW/2
#define DEFAULT_HINTBOX_TEXT_MODE (CTextBox::CENTER)
@@ -82,7 +83,11 @@ class CHintBox : public CComponentsWindow
const std::string& Picon,
const int& header_buttons,
const int& text_mode,
const int& indent);
const int& indent,
const fb_pixel_t& color_frame,
const fb_pixel_t& color_body,
const fb_pixel_t& color_shadow,
const int& frame_width);
virtual void ReSize();
void showTimeOutBar(){enableTimeOutBar();}
@@ -127,7 +132,11 @@ class CHintBox : public CComponentsWindow
const char * const Picon = NULL,
const int& header_buttons = 0,
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
const int& indent = W_FRAME);
const int& indent = W_FRAME,
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
/**CHintBox Constructor
* @param[in] Caption
@@ -141,7 +150,11 @@ class CHintBox : public CComponentsWindow
const char * const Picon = NULL,
const int& header_buttons = 0,
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
const int& indent = W_FRAME);
const int& indent = W_FRAME,
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
/**CHintBox Constructor
* @param[in] Caption
@@ -157,7 +170,11 @@ class CHintBox : public CComponentsWindow
const char * const Picon = NULL,
const int& header_buttons = 0,
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
const int& indent = W_FRAME);
const int& indent = W_FRAME,
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
/**CHintBox Constructor
* @param[in] Caption
@@ -173,7 +190,11 @@ class CHintBox : public CComponentsWindow
const char * const Picon = NULL,
const int& header_buttons = 0,
const int& text_mode = DEFAULT_HINTBOX_TEXT_MODE,
const int& indent = W_FRAME);
const int& indent = W_FRAME,
const fb_pixel_t& color_frame = HINTBOX_DEFAULT_FRAME_COLOR,
const fb_pixel_t& color_body = COL_MENUCONTENT_PLUS_0,
const fb_pixel_t& color_shadow = COL_SHADOW_PLUS_0,
const int& frame_width = HINTBOX_DEFAULT_FRAME_WIDTH);
virtual ~CHintBox();
/**