Shadow: try to optimize shadow areas

* cleanup inner part of box on round corners, frames considered
* adopt implementations in some gui classes
* some debug lines removed
* test menu adopted
* try to fix corner caluculation to avoid transparent holes
This commit is contained in:
2016-08-30 11:51:53 +02:00
parent b233c06af3
commit a17d61de8c
5 changed files with 72 additions and 73 deletions

View File

@@ -398,8 +398,8 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
}
else if (actionKey == "square"){
if (sq == NULL){
sq = new CComponentsShapeSquare (100, 220, 100, 100, NULL, CC_SHADOW_ON, COL_MENUCONTENT_PLUS_6, COL_LIGHT_GRAY, COL_RED);
sq->setCorner(11, CORNER_BOTTOM_LEFT);
sq = new CComponentsShapeSquare (0, 0, 100, 100, NULL, CC_SHADOW_ON, COL_OLIVE, COL_LIGHT_GRAY, COL_RED);
sq->enableFrame(true,1);
}
if (!sq->isPainted())