cc: rework color handling for select and focus status

This commit is contained in:
2020-12-07 20:33:52 +01:00
parent 26030ee914
commit c88a6ff7b3
26 changed files with 168 additions and 86 deletions

View File

@@ -51,7 +51,7 @@ void CComponentsDetailsLine::initVarDline( const int& x_pos, const int& y_pos_to
x = x_pos;
y = y_pos_top;
col_shadow = color_shadow;
col_body = color_line;
col_body_std = color_line;
shadow_w = 1;
@@ -91,6 +91,9 @@ CComponentsDetailsLine::~CComponentsDetailsLine()
void CComponentsDetailsLine::paint(const bool &do_save_bg)
{
hide();
col_body = col_body_std;
if (hasChanges())
clearFbData();
@@ -137,6 +140,12 @@ void CComponentsDetailsLine::paint(const bool &do_save_bg)
//so you can ensure correct applied system colors in relevant objects with unchanged instances.
void CComponentsDetailsLine::syncSysColors()
{
col_body = COL_FRAME_PLUS_0;
col_body_std = COL_FRAME_PLUS_0;
col_shadow = COL_SHADOW_PLUS_0;
}
void CComponentsDetailsLine::setColors(const fb_pixel_t &color_line, const fb_pixel_t &color_shadow)
{
col_body_std = color_line;
col_shadow = color_shadow;
}