diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-03 15:44:03 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-04 18:12:53 +0200 |
commit | 78412dd9c4420e60fdb0c5e848d87660d2d1b95e (patch) | |
tree | b17bd66e503fdfbe5859ecf23c81635554687a2a | |
parent | f5ff972590b99cdbe35976f59565869e2b9f0013 (diff) | |
download | skin-lcarsng-78412dd9c4420e60fdb0c5e848d87660d2d1b95e.tar.gz skin-lcarsng-78412dd9c4420e60fdb0c5e848d87660d2d1b95e.tar.bz2 |
Use SWITCHONLYPATCH
-rw-r--r-- | displaychannel.c | 8 | ||||
-rw-r--r-- | displaymenu.c | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/displaychannel.c b/displaychannel.c index e1e70b8..f401389 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -304,9 +304,13 @@ void cLCARSNGDisplayChannel::DrawTimer(void) const cEvent *Event = Timer->Event(); int y1 = i * Gap / 2; if (Channel && Event) { + tColor timerColor = Theme.Color(clrEventShortText); +#ifdef SWITCHONLYPATCH + if (Timer->HasFlags(tfSwitchOnly)) timerColor = Theme.Color(clrSwitchTimer); +#endif 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), 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); + osd->DrawText(xc04, y + y1, cString::sprintf("%s", *Date), timerColor, 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()), timerColor, 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); diff --git a/displaymenu.c b/displaymenu.c index aaa15a7..3490ebb 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -691,7 +691,7 @@ void cLCARSNGDisplayMenu::DrawTimer(const cTimer *Timer, int y, bool MultiRec) } if (Timer->Flags() & tfVps) Date = cString::sprintf("VPS %s", *Date); -#ifdef USE_SWITCHONLY +#ifdef SWITCHONLYPATCH if (Timer->Flags() & tfSwitchOnly) Date = cString::sprintf("UST %s", *Date); #endif |