mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CTestMenu: shadow for circle
TODO: not really nice at the moment
This commit is contained in:
@@ -369,8 +369,11 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
}
|
||||
#endif
|
||||
else if (actionKey == "button"){
|
||||
if (button == NULL)
|
||||
if (button == NULL){
|
||||
button = new CComponentsButtonRed(100, 100, 100, 50, "Test");
|
||||
button->enableShadow();
|
||||
}
|
||||
|
||||
|
||||
if (!button->isPainted()){
|
||||
if (button->isSelected())
|
||||
@@ -385,7 +388,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
}
|
||||
else if (actionKey == "circle"){
|
||||
if (circle == NULL)
|
||||
circle = new CComponentsShapeCircle (100, 100, 100, NULL, false);
|
||||
circle = new CComponentsShapeCircle (100, 100, 100, NULL, CC_SHADOW_ON, COL_MENUCONTENT_PLUS_6, COL_MENUCONTENT_PLUS_0, COL_RED);
|
||||
|
||||
if (!circle->isPainted())
|
||||
circle->paint();
|
||||
|
Reference in New Issue
Block a user