mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h - added extra methodes for simple use of some basic components extra.cpp/h - rework clock handling: use timer class, reworked members for enable/disable clock with external timer events, tryed to fix some display issues related with infoclock and time osd clock in moviebrowser, channellist, menuus - reworked hide/kill handling, removed parameter for hide(), try to use cached backgrounds for other constallations, paint cache, image cache (all beta) - reworked shadow/frame handling, add shadow modes for left/right arrangement, TODO: repaint for existant instances required - reworked color gradient assignment (beta) ... Note: I had a data crash in my local git tree and i tryed to restore my historie, but most was lost. Therefore here the commit is large
This commit is contained in:
@@ -43,7 +43,7 @@ CComponentsInfoBox::CComponentsInfoBox( const int& x_pos,
|
||||
const int mode,
|
||||
Font* font_text,
|
||||
CComponentsForm *parent,
|
||||
bool has_shadow,
|
||||
int shadow_mode,
|
||||
fb_pixel_t color_text,
|
||||
fb_pixel_t color_frame,
|
||||
fb_pixel_t color_body,
|
||||
@@ -55,7 +55,7 @@ CComponentsInfoBox::CComponentsInfoBox( const int& x_pos,
|
||||
y = y_pos;
|
||||
width = w;
|
||||
height = h;
|
||||
shadow = has_shadow;
|
||||
shadow = shadow_mode;
|
||||
col_frame = color_frame;
|
||||
col_body = color_body;
|
||||
col_shadow = color_shadow;
|
||||
@@ -110,7 +110,7 @@ void CComponentsInfoBox::paintPicture()
|
||||
pic->setColorBody(col_body);
|
||||
|
||||
//set gradient behavior of pic object
|
||||
if (col_body_gradient)
|
||||
if (cc_body_gradient_enable)
|
||||
pic->doPaintBg(false);
|
||||
|
||||
//fit icon into frame
|
||||
@@ -150,7 +150,7 @@ void CComponentsInfoBox::paint(bool do_save_bg)
|
||||
cctext->doPaintTextBoxBg(ct_paint_textbg);
|
||||
cctext->doPaintBg(false);
|
||||
cctext->setTextColor(ct_col_text);
|
||||
cctext->enableTboxSaveScreen(save_tbox_screen);
|
||||
cctext->enableTboxSaveScreen(cc_txt_save_screen);
|
||||
|
||||
//calculate vars for x-position and dimensions
|
||||
int tx = x_offset + x_text + pic_w;
|
||||
|
Reference in New Issue
Block a user