mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CComponentsPIP: use a default frame with thickness 2 and small corner radius
This commit is contained in:
@@ -2258,6 +2258,7 @@ void CChannelList::paintPig (int _x, int _y, int w, int h)
|
|||||||
}
|
}
|
||||||
//set changeable minitv properties
|
//set changeable minitv properties
|
||||||
cc_minitv->setDimensionsAll(_x, _y, w, h);
|
cc_minitv->setDimensionsAll(_x, _y, w, h);
|
||||||
|
cc_minitv->setCorner(0);
|
||||||
cc_minitv->setColorFrame(COL_MENUCONTENT_PLUS_0);
|
cc_minitv->setColorFrame(COL_MENUCONTENT_PLUS_0);
|
||||||
cc_minitv->paint(false);
|
cc_minitv->paint(false);
|
||||||
}
|
}
|
||||||
|
@@ -64,6 +64,9 @@ CComponentsPIP::CComponentsPIP( const int x_pos, const int y_pos, const int perc
|
|||||||
col_frame = color_frame;
|
col_frame = color_frame;
|
||||||
col_body = color_body;
|
col_body = color_body;
|
||||||
col_shadow = color_shadow;
|
col_shadow = color_shadow;
|
||||||
|
fr_thickness = 2;
|
||||||
|
corner_rad = RADIUS_SMALL;
|
||||||
|
corner_type = CORNER_ALL;
|
||||||
initParent(parent);
|
initParent(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,7 +99,8 @@ void CComponentsPIP::paint(bool do_save_bg)
|
|||||||
videoDecoder->Pig(pig_x, pig_y, pig_w, pig_h, screen_w, screen_h);
|
videoDecoder->Pig(pig_x, pig_y, pig_w, pig_h, screen_w, screen_h);
|
||||||
}
|
}
|
||||||
else{ //paint an alternate image if no tv mode available
|
else{ //paint an alternate image if no tv mode available
|
||||||
CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, CC_ALIGN_HOR_CENTER | CC_ALIGN_VER_CENTER);
|
CComponentsPicture pic = CComponentsPicture (pig_x, pig_y, pig_w, pig_h, pic_name, CC_ALIGN_HOR_CENTER | CC_ALIGN_VER_CENTER, NULL, false, col_frame, col_frame);
|
||||||
|
pic.setCorner(corner_rad, corner_type);
|
||||||
pic.paint(CC_SAVE_SCREEN_NO);
|
pic.paint(CC_SAVE_SCREEN_NO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -53,7 +53,7 @@ class CComponentsPIP : public CComponentsItem
|
|||||||
CComponentsPIP( const int x_pos = 0, const int y_pos = 0, const int percent = 30,
|
CComponentsPIP( const int x_pos = 0, const int y_pos = 0, const int percent = 30,
|
||||||
CComponentsForm *parent = NULL,
|
CComponentsForm *parent = NULL,
|
||||||
bool has_shadow = CC_SHADOW_OFF,
|
bool has_shadow = CC_SHADOW_OFF,
|
||||||
fb_pixel_t color_frame = COL_BACKGROUND, fb_pixel_t color_body = COL_BACKGROUND, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
|
fb_pixel_t color_frame = COL_BLACK, fb_pixel_t color_body = COL_BACKGROUND, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0);
|
||||||
~CComponentsPIP();
|
~CComponentsPIP();
|
||||||
|
|
||||||
///set property: width of tv box in pixel
|
///set property: width of tv box in pixel
|
||||||
|
Reference in New Issue
Block a user