From ffdd2a760c1e83e6b3fa64fe2d76e341eed210bd Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 19 Aug 2016 21:19:04 +0200 Subject: [PATCH] CTestMenu: shadow for circle TODO: not really nice at the moment Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/1888189fb306d65543292d268779290add8be823 Author: Thilo Graf Date: 2016-08-19 (Fri, 19 Aug 2016) --- src/gui/test_menu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 30ce470e6..6d2ad06df 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -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();