mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
- themes: allow progressbar-settings in themes
This commit is contained in:
@@ -1898,7 +1898,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
||||
int prg_offset = 0;
|
||||
int title_offset = 0;
|
||||
int rec_mode;
|
||||
if(g_settings.channellist_progressbar_design != CProgressBar::PB_OFF)
|
||||
if(g_settings.theme.progressbar_design_channellist != CProgressBar::PB_OFF)
|
||||
{
|
||||
prg_offset = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getRenderWidth("00:00");
|
||||
title_offset = OFFSET_INNER_SMALL;
|
||||
@@ -2020,11 +2020,11 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
||||
int pb_height = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getDigitHeight();
|
||||
CProgressBar pb(x + OFFSET_INNER_SMALL + numwidth + title_offset, ypos + (fheight-pb_height)/2, pb_space + 2, pb_height, COL_MENUCONTENT_PLUS_0);
|
||||
pb.setType(CProgressBar::PB_TIMESCALE);
|
||||
pb.setDesign(g_settings.channellist_progressbar_design);
|
||||
pb.setDesign(g_settings.theme.progressbar_design_channellist);
|
||||
pb.setCornerType(0);
|
||||
pb.setStatusColors(COL_MENUCONTENT_PLUS_3, COL_MENUCONTENT_PLUS_1);
|
||||
int pb_frame = 0;
|
||||
if (g_settings.channellist_progressbar_design == CProgressBar::PB_MONO && !g_settings.progressbar_gradient)
|
||||
if (g_settings.theme.progressbar_design_channellist == CProgressBar::PB_MONO && !g_settings.theme.progressbar_gradient)
|
||||
{
|
||||
// add small frame to mono progressbars w/o gradient for a better visibility
|
||||
pb_frame = 1;
|
||||
@@ -2046,7 +2046,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
||||
if ((int) ch_desc_len > max_desc_len)
|
||||
ch_desc_len = max_desc_len;
|
||||
|
||||
if(g_settings.channellist_progressbar_design != CProgressBar::PB_OFF) {
|
||||
if(g_settings.theme.progressbar_design_channellist != CProgressBar::PB_OFF) {
|
||||
if(displayNext)
|
||||
{
|
||||
struct tm *pStartZeit = localtime(&p_event->startTime);
|
||||
@@ -2081,7 +2081,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (g_settings.channellist_progressbar_design != CProgressBar::PB_OFF)
|
||||
if (g_settings.theme.progressbar_design_channellist != CProgressBar::PB_OFF)
|
||||
{
|
||||
pb.setValues(0, pb_max);
|
||||
pb.paint();
|
||||
|
Reference in New Issue
Block a user