add and use FRAME_WIDTH defines; ...

replace other fixed frame widths with OFFSET defines


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6d58a3b1c9
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-20 (Wed, 20 Sep 2017)

Origin message was:
------------------
- add and use FRAME_WIDTH defines; ...

replace other fixed frame widths with OFFSET defines


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-09-20 13:46:31 +02:00
parent 757f054720
commit daf4480f61
16 changed files with 21 additions and 20 deletions

View File

@@ -2032,11 +2032,11 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
pb.setDesign(g_settings.theme.progressbar_design_channellist);
pb.setCornerType(0);
pb.setStatusColors(COL_PROGRESSBAR_ACTIVE_PLUS_0, COL_PROGRESSBAR_PASSIVE_PLUS_0); //NI
int pb_frame = 0;
int pb_frame = FRAME_WIDTH_NONE;
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;
pb_frame = FRAME_WIDTH_MIN;
}
pb.setFrameThickness(pb_frame);
pb.doPaintBg(false);
@@ -2318,7 +2318,7 @@ void CChannelList::paintPig(int _x, int _y, int w, int h)
if (cc_minitv == NULL){
cc_minitv = new CComponentsPIP (0, 0);
cc_minitv->setPicture(NEUTRINO_ICON_AUDIOPLAY);
cc_minitv->setFrameThickness(5);
cc_minitv->setFrameThickness(OFFSET_INNER_SMALL);
}
//set changeable minitv properties
cc_minitv->setDimensionsAll(_x, _y, w, h);