diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-02-11 18:43:28 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-02-11 18:43:28 +0100 |
commit | 847cb778ddcab6ccf458db6ef4ae5e68a31038d1 (patch) | |
tree | 30132c6d61c019e420312b0a53cfe2bc6270329e /displaymenu.c | |
parent | 5a924e1d59cb070e7898e6530c61ffb3c3daf815 (diff) | |
download | skin-flatplus-847cb778ddcab6ccf458db6ef4ae5e68a31038d1.tar.gz skin-flatplus-847cb778ddcab6ccf458db6ef4ae5e68a31038d1.tar.bz2 |
add theme font color for timer item inactiv and recording
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/displaymenu.c b/displaymenu.c index 48de48e5..840851f5 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -765,13 +765,13 @@ bool cFlatDisplayMenu::SetItemChannel(const cChannel *Channel, int Index, bool C } if( Config.MenuChannelView == 4 && Event && Current ) { - DrawItemExtraEvent(Event); + DrawItemExtraEvent(Event, ""); } return true; } -void cFlatDisplayMenu::DrawItemExtraEvent(const cEvent *Event) { +void cFlatDisplayMenu::DrawItemExtraEvent(const cEvent *Event, cString EmptyText) { cLeft = menuItemWidth + Config.decorBorderMenuItemSize*2 + Config.decorBorderMenuContentSize + marginItem; if( isScrolling ) @@ -856,7 +856,8 @@ void cFlatDisplayMenu::DrawItemExtraEvent(const cEvent *Event) { text << endl << tr("Subtitle") << ": "<< subtitle.str(); } } - } + } else + text << *EmptyText; ContentCreate(cLeft, cTop, cWidth, cHeight, 2); ContentSet( text.str().c_str(), Theme.Color(clrMenuEventFontInfo), Theme.Color(clrMenuEventBg) ); @@ -916,11 +917,13 @@ bool cFlatDisplayMenu::SetItemTimer(const cTimer *Timer, int Index, bool Current int imageTop = Top; cString TimerIconName(""); - if (!(Timer->HasFlags(tfActive))) + if (!(Timer->HasFlags(tfActive))) { TimerIconName = "timerInactive"; - else if (Timer->Recording()) + ColorFg = Theme.Color( clrMenuTimerItemDisabledFont ); + } else if (Timer->Recording()) { TimerIconName = "timerRecording"; - else + ColorFg = Theme.Color( clrMenuTimerItemRecordingFont ); + } else TimerIconName = "timerActive"; if( imgLoader.LoadIcon(TimerIconName, imageHeight, imageHeight) ) { @@ -1042,7 +1045,7 @@ bool cFlatDisplayMenu::SetItemTimer(const cTimer *Timer, int Index, bool Current } if( Config.MenuTimerView == 3 && Current ) { - DrawItemExtraEvent(Event); + DrawItemExtraEvent(Event, tr("timer not enabled")); } return true; |