mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
CComponentsItem: fix changeing color on select switching of frames
expand select mode methodes with paremters for frame properties This should make variables col_frame_sel and fr_thickness_sel superfluous.
This commit is contained in:
@@ -105,8 +105,14 @@ class CComponentsItem : public CComponents
|
||||
///syncronizes item colors with current color settings if required, NOTE: overwrites internal values!
|
||||
virtual void syncSysColors();
|
||||
|
||||
///set select mode, see also col_frame_sel
|
||||
virtual void setSelected(bool selected){cc_item_selected = selected;};
|
||||
///set select mode
|
||||
virtual void setSelected(bool selected,
|
||||
const fb_pixel_t& sel_frame_col = COL_MENUCONTENTSELECTED_PLUS_0,
|
||||
const fb_pixel_t& frame_col = COL_SHADOW_PLUS_0,
|
||||
const fb_pixel_t& sel_body_col = COL_MENUCONTENT_PLUS_0,
|
||||
const fb_pixel_t& body_col = COL_MENUCONTENT_PLUS_0,
|
||||
const int& frame_w = 3,
|
||||
const int& sel_frame_w = 3);
|
||||
///set enable mode, see also cc_item_enabled
|
||||
virtual void setEnable(bool enabled){cc_item_enabled = enabled;};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user