channellist: show display mode in header (next/primetime only)

Origin commit data
------------------
Branch: ni/coolstream
Commit: bbf6f2e3c9
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-09 (Sat, 09 Mar 2019)

Origin message was:
------------------
- channellist: show display mode in header (next/primetime only)

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-03-09 22:28:44 +01:00
parent 8e51f5b3ea
commit 48257a7111

View File

@@ -2271,11 +2271,22 @@ void CChannelList::paintHead()
else
header->setIcon(edit_state ? NEUTRINO_ICON_EDIT : NULL);
std::string header_txt = !edit_state ? name : std::string(g_Locale->getText(LOCALE_CHANNELLIST_EDIT)) + ": " + name;
fb_pixel_t header_txt_col = (edit_state ? COL_RED : COL_MENUHEAD_TEXT);
header->setColorBody(COL_MENUHEAD_PLUS_0);
std::string header_txt;
if (edit_state)
{
header_txt = std::string(g_Locale->getText(LOCALE_CHANNELLIST_EDIT)) + ": " + name;
}
else
{
header_txt = name;
if (displayMode == DISPLAY_MODE_NEXT)
header_txt += " - " + std::string(g_Locale->getText(LOCALE_INFOVIEWER_NEXT));
else if (displayMode == DISPLAY_MODE_PRIME)
header_txt += " - " + std::string(g_Locale->getText(LOCALE_CHANNELLIST_PRIMETIME));
}
header->setCaption(header_txt, DEFAULT_TITLE_ALIGN, header_txt_col);
header->setColorBody(COL_MENUHEAD_PLUS_0);
header->setCaption(header_txt, DEFAULT_TITLE_ALIGN, edit_state ? COL_RED : COL_MENUHEAD_TEXT);
if (timeset) {
if(!edit_state){