diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-11-16 13:14:01 +0100 |
---|---|---|
committer | kamel5 <kamel5 (at) gmx (dot) net> | 2018-11-16 13:14:01 +0100 |
commit | d7c276923ee915836e4712b2de53053e9c6bafaf (patch) | |
tree | baf3c7250632c9ac473ffe0425d5f8dc10b64f9f /displaychannel.c | |
parent | adc84a29f4a28cc9a7f3863d79e29002707c6353 (diff) | |
download | skin-lcarsng-d7c276923ee915836e4712b2de53053e9c6bafaf.tar.gz skin-lcarsng-d7c276923ee915836e4712b2de53053e9c6bafaf.tar.bz2 |
SwitchTimer in channeldisplay with different color
Diffstat (limited to 'displaychannel.c')
-rw-r--r-- | displaychannel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/displaychannel.c b/displaychannel.c index 9d9db49..2f2dafb 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -304,8 +304,8 @@ void cLCARSNGDisplayChannel::DrawTimer(void) int y1 = i * Gap / 2; if (Channel && Event) { osd->DrawText(xc01, y + y1, cString::sprintf("%d", Channel->Number()), Theme.Color(clrEventShortText), frameColor, cFont::GetFont(fontSml), xc02 - xc01 - Gap - 1, lineHeight - 2 * y1, taRight | taBorder); - osd->DrawText(xc04, y + y1, cString::sprintf("%s", *Date), Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06a - xc04 - Gap - 1, lineHeight - 2 * y1, taRight | taBorder); - osd->DrawText(xc06a, y + y1, cString::sprintf("%s", Event->Title()), Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06l - xc06a - Gap - 1, lineHeight - 2 * y1, taLeft | taBorder); + osd->DrawText(xc04, y + y1, cString::sprintf("%s", *Date), Timer->HasFlags(tfSwitchOnly) ? Theme.Color(clrSwitchTimer) : Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06a - xc04 - Gap - 1, lineHeight - 2 * y1, taRight | taBorder); + osd->DrawText(xc06a, y + y1, cString::sprintf("%s", Event->Title()), Timer->HasFlags(tfSwitchOnly) ? Theme.Color(clrSwitchTimer) : Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06l - xc06a - Gap - 1, lineHeight - 2 * y1, taLeft | taBorder); } if (isRecording) // && Number) osd->DrawText(xc04, y + y1, cString::sprintf("Rec: #%s", *Number), Theme.Color(clrChannelSymbolRecBg), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc05 - xc04 - Gap - 1, lineHeight - 2 * y1, taRight | taBorder); |