- add and use FRAME_WIDTH defines; ...

replace other fixed frame widths with OFFSET defines

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-09-20 13:46:31 +02:00
committed by Thilo Graf
parent ecdc1acb9f
commit 6ee3e54741
15 changed files with 18 additions and 17 deletions

View File

@@ -155,7 +155,7 @@ void CComponentsScrollBar::initSegments()
//init segment container
if (sb_segments_obj == NULL){
sb_segments_obj = new CComponentsFrmChain(CC_CENTERED, CC_APPEND, w_seg, h_seg_obj, NULL, CC_DIR_Y, this, false);
sb_segments_obj->setFrameThickness(0);
sb_segments_obj->setFrameThickness(FRAME_WIDTH_NONE);
}else
sb_segments_obj->setDimensionsAll(CC_CENTERED, CC_APPEND, w_seg, h_seg_obj);

View File

@@ -450,7 +450,7 @@ void CProgressBar::paintProgress(bool do_save_bg)
pb_green /= sum;
if (*pb_gradient)
setFrameThickness(0);
setFrameThickness(FRAME_WIDTH_NONE);
initDimensions();