CComponents: move variable cc_gradientData, paintGradient into base class

Variable now usable via g_settings in all subclasses. enable/disable.
TODO: gradient type handling
This commit is contained in:
2014-09-20 21:34:43 +02:00
committed by [CST] Focus
parent 8762d4b871
commit 64c84fb490
7 changed files with 21 additions and 15 deletions

View File

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