CComponents: add vars to modifie frames in selected mode

This commit is contained in:
2013-04-16 08:32:42 +02:00
parent 336c3bc7a1
commit 894d229b09
3 changed files with 14 additions and 6 deletions

View File

@@ -72,12 +72,18 @@ void CComponentsItem::paintInit(bool do_save_bg)
int sw = shadow ? shadow_w : 0;
int th = fr_thickness;
int col_frame_cur = col_frame;
if (cc_item_selected){
col_frame_cur = col_frame_sel;
th = max(fr_thickness_sel, fr_thickness);
}
comp_fbdata_t fbdata[] =
{
{CC_FBDATA_TYPE_BGSCREEN, x, y, width+sw, height+sw, 0, 0, 0, NULL, NULL},
{CC_FBDATA_TYPE_SHADOW, x+sw, y+sw, width, height, col_shadow, corner_rad, 0, NULL, NULL},
{CC_FBDATA_TYPE_FRAME, x, y, width, height, col_frame, corner_rad, th, NULL, NULL},
{CC_FBDATA_TYPE_FRAME, x, y, width, height, col_frame_cur, corner_rad, th, NULL, NULL},
{CC_FBDATA_TYPE_BOX, x+th, y+th, width-2*th, height-2*th, col_body, corner_rad-th, 0, NULL, NULL},
};