CProgressWindow: dont't paint frame on progressbars

Origin commit data
------------------
Commit: f164104daf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-30 (Mon, 30 Jun 2014)
This commit is contained in:
2014-06-30 15:45:03 +02:00
committed by [CST] Focus
parent fcbb131003
commit d13c205ade
2 changed files with 4 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ void CProgressWindow::Init()
int y_item = 10;
int w_item = width-2*x_item;
int h_item = 20;
w_bar_frame = 0;
//create status text object
status_txt = new CComponentsLabel();
@@ -65,7 +66,7 @@ void CProgressWindow::Init()
local_bar->setDimensionsAll(x_item, y_item, w_item, h_item);
local_bar->setColorBody(col_body);
local_bar->setActiveColor(COL_MENUCONTENT_PLUS_7);
local_bar->setFrameThickness(2);
local_bar->setFrameThickness(w_bar_frame);
local_bar->setColorFrame(COL_MENUCONTENT_PLUS_7);
addWindowItem(local_bar);
y_item += 2*h_item;
@@ -75,7 +76,7 @@ void CProgressWindow::Init()
global_bar->setDimensionsAll(x_item, y_item, w_item, h_item);
global_bar->setColorBody(col_body);
global_bar->setActiveColor(COL_MENUCONTENT_PLUS_7);
global_bar->setFrameThickness(2);
global_bar->setFrameThickness(w_bar_frame);
global_bar->setColorFrame(COL_MENUCONTENT_PLUS_7);
addWindowItem(global_bar);
y_item += 2*h_item;

View File

@@ -41,6 +41,7 @@ class CProgressWindow : public CComponentsWindow, public CMenuTarget
unsigned int global_progress;
unsigned int local_progress;
int w_bar_frame;
void Init();