summaryrefslogtreecommitdiff
path: root/displaychannel.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-09-14 09:57:41 +0200
committerlouis <louis.braun@gmx.de>2013-09-14 09:57:41 +0200
commit776bf77c86b46a2a41fd8401aae0d0950ce81a30 (patch)
tree5e1869c8df1f72153f9b40e233d3211c0db0fdf6 /displaychannel.c
parent3591b4db506f405705451a439083ad63a87c249f (diff)
downloadskin-nopacity-776bf77c86b46a2a41fd8401aae0d0950ce81a30.tar.gz
skin-nopacity-776bf77c86b46a2a41fd8401aae0d0950ce81a30.tar.bz2
dedicated theme colors in display channel for current event, current event info, next evet and next event info (closes Feature 1466)
Diffstat (limited to 'displaychannel.c')
-rw-r--r--displaychannel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/displaychannel.c b/displaychannel.c
index e8389fa..1af5868 100644
--- a/displaychannel.c
+++ b/displaychannel.c
@@ -630,7 +630,7 @@ void cNopacityDisplayChannel::DrawChannelGroups(const cChannel *Channel, cString
prevChannelSep = CutText(*prevChannelSep, xSymbol, fontChannelGroupSmall).c_str();
xSepPrev = xSymbol - 10 - fontChannelGroupSmall->Width(prevChannelSep);
}
- infoPixmap->DrawText(cPoint(xSepPrev, ySepNextPrev), *prevChannelSep, Theme.Color(clrChannelEPGInfo), clrTransparent, fontChannelGroupSmall);
+ infoPixmap->DrawText(cPoint(xSepPrev, ySepNextPrev), *prevChannelSep, Theme.Color(clrChannelEPGInfoNext), clrTransparent, fontChannelGroupSmall);
}
if (nextAvailable) {
int xSymbol = xSep + widthSep + 10;
@@ -642,7 +642,7 @@ void cNopacityDisplayChannel::DrawChannelGroups(const cChannel *Channel, cString
if (fontChannelGroupSmall->Width(nextChannelSep) > spaceAvailable) {
nextChannelSep = CutText(*nextChannelSep, spaceAvailable, fontChannelGroupSmall).c_str();
}
- infoPixmap->DrawText(cPoint(xSepNext, ySepNextPrev), *nextChannelSep, Theme.Color(clrChannelEPGInfo), clrTransparent, fontChannelGroupSmall);
+ infoPixmap->DrawText(cPoint(xSepNext, ySepNextPrev), *nextChannelSep, Theme.Color(clrChannelEPGInfoNext), clrTransparent, fontChannelGroupSmall);
}
}
@@ -713,7 +713,9 @@ void cNopacityDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Fol
if (spaceShort < epgWidthShort) {
strEPGShort = CutText(e->ShortText(), spaceShort, fontEPGSmall).c_str();
}
- tColor fontColor = (i==0)?Theme.Color(clrChannelEPG):Theme.Color(clrChannelEPGInfo);
+ tColor fontColor = (i==0)?Theme.Color(clrChannelEPG):Theme.Color(clrChannelEPGNext);
+ tColor fontColorInfo = (i==0)?Theme.Color(clrChannelEPGInfo):Theme.Color(clrChannelEPGInfoNext);
+
pixmapEPGInfo->DrawText(cPoint(indent, y * epgInfoLineHeight), *startTime, fontColor, clrTransparent, fontEPG);
int xEPGInfo = 2 * indent + startTimeWidth;
if (drawRecIcon) {
@@ -726,7 +728,7 @@ void cNopacityDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Fol
xEPGInfo += widthRecIcon + indent/2;
}
pixmapEPGInfo->DrawText(cPoint(xEPGInfo, y * epgInfoLineHeight), *strEPG, fontColor, clrTransparent, fontEPG);
- pixmapEPGInfo->DrawText(cPoint(2 * indent + startTimeWidth, (y+1) * epgInfoLineHeight + 3), *strEPGShort, fontColor, clrTransparent, fontEPGSmall);
+ pixmapEPGInfo->DrawText(cPoint(2 * indent + startTimeWidth, (y+1) * epgInfoLineHeight + 3), *strEPGShort, fontColorInfo, clrTransparent, fontEPGSmall);
int x = infoWidth - indent - seenWidth - config.resolutionIconSize - indent;
pixmapEPGInfo->DrawText(cPoint(x, y * epgInfoLineHeight), *strSeen, fontColor, clrTransparent, fontEPG);
}