mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
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:
@@ -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){
|
||||
|
Reference in New Issue
Block a user