mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +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
|
#endif
|
||||||
else if (actionKey == "button"){
|
else if (actionKey == "button"){
|
||||||
if (button == NULL)
|
if (button == NULL){
|
||||||
button = new CComponentsButtonRed(100, 100, 100, 50, "Test");
|
button = new CComponentsButtonRed(100, 100, 100, 50, "Test");
|
||||||
|
button->enableShadow();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!button->isPainted()){
|
if (!button->isPainted()){
|
||||||
if (button->isSelected())
|
if (button->isSelected())
|
||||||
@@ -385,7 +388,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
}
|
}
|
||||||
else if (actionKey == "circle"){
|
else if (actionKey == "circle"){
|
||||||
if (circle == NULL)
|
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())
|
if (!circle->isPainted())
|
||||||
circle->paint();
|
circle->paint();
|
||||||
|
Reference in New Issue
Block a user