mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Progressbars: use default frame thickness
It's unnecessary overhead to set the value everywhere, except it's needed.
This commit is contained in:
@@ -113,6 +113,7 @@ void CVolume::Init()
|
||||
delete volscale;
|
||||
volscale = new CProgressBar(progress_x, progress_y, progress_w, progress_h, colFrame, colBar, colShadow, COL_MENUCONTENT_PLUS_3, COL_MENUCONTENT_PLUS_1, true);
|
||||
volscale->setInvert();
|
||||
volscale->setFrameThickness(2);
|
||||
|
||||
// mute icon
|
||||
mute_icon_dx = 0;
|
||||
|
@@ -443,7 +443,6 @@ void CDBoxInfoWidget::paint()
|
||||
if (pbw > 8) /* smaller progressbar is not useful ;) */
|
||||
{
|
||||
CProgressBar pb(x+offsetw, ypos+3, pbw, mheight-10);
|
||||
pb.setFrameThickness(0);
|
||||
pb.setBlink();
|
||||
pb.setInvert();
|
||||
pb.setValues(percent_used, 100);
|
||||
|
@@ -642,7 +642,6 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
{
|
||||
int pbx = sx + 10 + widthl + 10 + ((ox-104-widthr-widthl-10-10-20)>>1);
|
||||
CProgressBar pb(pbx, sy+oy-height, 104, height-6);
|
||||
pb.setFrameThickness(0);
|
||||
pb.setBlink();
|
||||
pb.setValues(epg_done, 100);
|
||||
pb.paint(false);
|
||||
@@ -688,7 +687,6 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
if ( epg_done!= -1 ) {
|
||||
int pbx = sx + 10 + widthl + 10 + ((ox-104-widthr-widthl-10-10-20)>>1);
|
||||
CProgressBar pb(pbx, sy+oy-height, 104, height-6);
|
||||
pb.setFrameThickness(0);
|
||||
pb.setBlink();
|
||||
pb.setValues(epg_done, 100);
|
||||
pb.paint(false);
|
||||
|
@@ -220,13 +220,11 @@ void CInfoViewer::changePB()
|
||||
delete sigscale;
|
||||
sigscale = new CProgressBar();
|
||||
sigscale->setBlink();
|
||||
sigscale->setFrameThickness(0);
|
||||
|
||||
if (snrscale)
|
||||
delete snrscale;
|
||||
snrscale = new CProgressBar();
|
||||
snrscale->setBlink();
|
||||
snrscale->setFrameThickness(0);
|
||||
|
||||
if (timescale)
|
||||
delete timescale;
|
||||
@@ -1479,7 +1477,6 @@ void CInfoViewer::display_Info(const char *current, const char *next,
|
||||
pb_w = BoxEndX - 10 - xStart;
|
||||
pb_shadow = 0;
|
||||
timescale->setShadowOnOff(false);
|
||||
timescale->setFrameThickness(0);
|
||||
}
|
||||
switch(g_settings.infobar_progressbar) //set progressbar position
|
||||
{
|
||||
|
@@ -819,14 +819,12 @@ void CInfoViewerBB::changePB()
|
||||
if (hddscale)
|
||||
delete hddscale;
|
||||
hddscale = new CProgressBar();
|
||||
hddscale->setFrameThickness(0);
|
||||
hddscale->setBlink();
|
||||
hddscale->setInvert();
|
||||
|
||||
if (sysscale)
|
||||
delete sysscale;
|
||||
sysscale = new CProgressBar();
|
||||
sysscale->setFrameThickness(0);
|
||||
sysscale->setBlink();
|
||||
sysscale->setInvert();
|
||||
}
|
||||
|
@@ -1288,7 +1288,6 @@ void CMovieBrowser::info_hdd_level(bool paint_hdd)
|
||||
CProgressBar pb(m_cBoxFrame.iX+ m_cBoxFrameFootRel.iWidth - pbw - border, m_cBoxFrame.iY+m_cBoxFrameTitleRel.iY + border, pbw, m_cBoxFrameTitleRel.iHeight/2);
|
||||
pb.setBlink();
|
||||
pb.setInvert();
|
||||
pb.setFrameThickness(0);
|
||||
pb.setValues( blocks_percent_used, 100);
|
||||
pb.paint(false);
|
||||
}
|
||||
|
@@ -120,12 +120,13 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
||||
#define BAR_WIDTH 150
|
||||
#define BAR_HEIGHT 12
|
||||
int res = menu_return::RETURN_REPAINT;
|
||||
sigscale = new CProgressBar(/*true, BAR_WIDTH, BAR_HEIGHT*/);
|
||||
|
||||
sigscale = new CProgressBar();
|
||||
sigscale->setBlink();
|
||||
sigscale->setFrameThickness(0);
|
||||
snrscale = new CProgressBar(/*true, BAR_WIDTH, BAR_HEIGHT*/);
|
||||
|
||||
snrscale = new CProgressBar();
|
||||
snrscale->setBlink();
|
||||
snrscale->setFrameThickness(0);
|
||||
|
||||
lastsnr = lastsig = -1;
|
||||
|
||||
neutrino_msg_t msg;
|
||||
|
Reference in New Issue
Block a user