mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
* Fix order of colors for some progress bars
This commit is contained in:
@@ -106,12 +106,13 @@ void CVolume::Init()
|
||||
vbar_w = spacer + icon_w + spacer + progress_w + spacer;
|
||||
if (paintDigits) {
|
||||
digit_w = g_Font[VolumeFont]->getRenderWidth("100");
|
||||
progress_h = std::max(icon_h, digit_h) - 2*pB;
|
||||
progress_h = std::max(icon_h, digit_h);
|
||||
vbar_w += digit_w;
|
||||
}
|
||||
if (volscale)
|
||||
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();
|
||||
|
||||
// mute icon
|
||||
mute_icon_dx = 0;
|
||||
|
@@ -445,6 +445,7 @@ void CDBoxInfoWidget::paint()
|
||||
CProgressBar pb(x+offsetw, ypos+3, pbw, mheight-10);
|
||||
pb.setFrameThickness(0);
|
||||
pb.setBlink();
|
||||
pb.setInvert();
|
||||
pb.setValues(percent_used, 100);
|
||||
pb.paint(false);
|
||||
}
|
||||
|
@@ -232,6 +232,7 @@ void CInfoViewer::changePB()
|
||||
delete timescale;
|
||||
timescale = new CProgressBar();
|
||||
timescale->setBlink();
|
||||
timescale->setRgb(0, 100, 70);
|
||||
}
|
||||
|
||||
void CInfoViewer::paintTime (bool show_dot, bool firstPaint)
|
||||
|
@@ -821,12 +821,14 @@ void CInfoViewerBB::changePB()
|
||||
hddscale = new CProgressBar();
|
||||
hddscale->setFrameThickness(0);
|
||||
hddscale->setBlink();
|
||||
hddscale->setInvert();
|
||||
|
||||
if (sysscale)
|
||||
delete sysscale;
|
||||
sysscale = new CProgressBar();
|
||||
sysscale->setFrameThickness(0);
|
||||
sysscale->setBlink();
|
||||
sysscale->setInvert();
|
||||
}
|
||||
|
||||
void CInfoViewerBB::reset_allScala()
|
||||
|
@@ -1288,6 +1288,7 @@ 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);
|
||||
}
|
||||
|
@@ -122,8 +122,10 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
||||
int res = menu_return::RETURN_REPAINT;
|
||||
sigscale = new CProgressBar(/*true, BAR_WIDTH, BAR_HEIGHT*/);
|
||||
sigscale->setBlink();
|
||||
sigscale->setFrameThickness(0);
|
||||
snrscale = new CProgressBar(/*true, BAR_WIDTH, BAR_HEIGHT*/);
|
||||
snrscale->setBlink();
|
||||
snrscale->setFrameThickness(0);
|
||||
lastsnr = lastsig = -1;
|
||||
|
||||
neutrino_msg_t msg;
|
||||
|
@@ -119,6 +119,7 @@ void CTimeOSD::updatePos(short runningPercent)
|
||||
|
||||
timescale->setProgress(m_xstart, m_y, BARLEN, m_height -5, runningPercent, 100);
|
||||
timescale->setBlink();
|
||||
timescale->setRgb(0, 100, 70);
|
||||
timescale->paint();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user