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 | |
parent | adc84a29f4a28cc9a7f3863d79e29002707c6353 (diff) | |
download | skin-lcarsng-d7c276923ee915836e4712b2de53053e9c6bafaf.tar.gz skin-lcarsng-d7c276923ee915836e4712b2de53053e9c6bafaf.tar.bz2 |
SwitchTimer in channeldisplay with different color
-rw-r--r-- | displaychannel.c | 4 | ||||
-rw-r--r-- | lcarsng.h | 1 |
2 files changed, 3 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); @@ -153,6 +153,7 @@ THEME_CLR(Theme, clrChannelSymbolOn, CLR_BLACK); THEME_CLR(Theme, clrChannelSymbolOff, RgbShade(CLR_CHANNEL_FRAME, -0.2)); THEME_CLR(Theme, clrChannelSymbolRecFg, CLR_WHITE); THEME_CLR(Theme, clrChannelSymbolRecBg, CLR_RED); +THEME_CLR(Theme, clrSwitchTimer, CLR_GREEN); // Menu: |