CComponentsWindow, CMenuWidget: apply gradiant settings to header

This commit is contained in:
2014-09-20 21:34:27 +02:00
committed by [CST] Focus
parent e1a2d173f4
commit c1f70dbbb8
2 changed files with 2 additions and 1 deletions

View File

@@ -200,6 +200,7 @@ void CComponentsWindow::initHeader()
ccw_head->setCaption(ccw_caption, ccw_align_mode);
ccw_head->setContextButton(ccw_buttons);
ccw_head->setCorner(corner_rad, CORNER_TOP);
ccw_head->setPaintGradient(g_settings.gradiant);
}
}

View File

@@ -1099,7 +1099,7 @@ void CMenuWidget::paint()
// paint head
CComponentsHeader header(x, y, width + sb_width, hheight, getName(), iconfile);
header.setPaintGradient(true);
header.setPaintGradient(g_settings.gradiant);
header.setShadowOnOff(CC_SHADOW_ON);
header.setOffset(10);
header.paint(CC_SAVE_SCREEN_NO);