mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
infoviewer: (re)use SHADOW_OFFSET/2 for small shadows
Origin commit data
------------------
Branch: ni/coolstream
Commit: 429e401d91
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-01-07 (Thu, 07 Jan 2016)
Origin message was:
------------------
- infoviewer: (re)use SHADOW_OFFSET/2 for small shadows
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -327,7 +327,7 @@ void CInfoViewer::showRecordIcon (const bool show)
|
|||||||
if (rec == NULL){ //TODO: full refactoring of this icon handler
|
if (rec == NULL){ //TODO: full refactoring of this icon handler
|
||||||
rec = new CComponentsShapeSquare(box_posX, BoxStartY + box_posY , box_len, chanH, NULL, CC_SHADOW_ON, COL_RED, COL_INFOBAR_PLUS_0);
|
rec = new CComponentsShapeSquare(box_posX, BoxStartY + box_posY , box_len, chanH, NULL, CC_SHADOW_ON, COL_RED, COL_INFOBAR_PLUS_0);
|
||||||
rec->setFrameThickness(2);
|
rec->setFrameThickness(2);
|
||||||
rec->setShadowWidth(3);
|
rec->setShadowWidth(SHADOW_OFFSET/2);
|
||||||
rec->setCorner(RADIUS_MIN, CORNER_ALL);
|
rec->setCorner(RADIUS_MIN, CORNER_ALL);
|
||||||
}
|
}
|
||||||
if (!rec->isPainted())
|
if (!rec->isPainted())
|
||||||
@@ -1949,7 +1949,7 @@ void CInfoViewer::showInfoFile()
|
|||||||
//set some properties for info object
|
//set some properties for info object
|
||||||
infobar_txt->setDimensionsAll(xStart, yStart, width, height);
|
infobar_txt->setDimensionsAll(xStart, yStart, width, height);
|
||||||
infobar_txt->setCorner(RADIUS_SMALL);
|
infobar_txt->setCorner(RADIUS_SMALL);
|
||||||
infobar_txt->enableShadow(CC_SHADOW_ON, 3);
|
infobar_txt->enableShadow(CC_SHADOW_ON, SHADOW_OFFSET/2);
|
||||||
infobar_txt->setTextColor(COL_INFOBAR_TEXT);
|
infobar_txt->setTextColor(COL_INFOBAR_TEXT);
|
||||||
infobar_txt->setColorBody(COL_INFOBAR_PLUS_0);
|
infobar_txt->setColorBody(COL_INFOBAR_PLUS_0);
|
||||||
infobar_txt->doPaintTextBoxBg(false);
|
infobar_txt->doPaintTextBoxBg(false);
|
||||||
|
Reference in New Issue
Block a user