mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
cc: rework color handling for select and focus status
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user