mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
Colors: init global color gradient implementation
Origin commit data
------------------
Branch: ni/coolstream
Commit: 523b273af8
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-19 (Thu, 19 Nov 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -476,9 +476,9 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.infobar_show = configfile.getInt32("infobar_show", configfile.getInt32("infobar_cn", 1));
|
||||
g_settings.infobar_show_channellogo = configfile.getInt32("infobar_show_channellogo" , 3 );
|
||||
g_settings.infobar_progressbar = configfile.getInt32("infobar_progressbar" , 1 ); // below channel name
|
||||
g_settings.casystem_display = configfile.getInt32("casystem_display", 1 );//discreet ca mode default
|
||||
g_settings.casystem_dotmatrix = configfile.getInt32("casystem_dotmatrix", 1 );
|
||||
g_settings.casystem_frame = configfile.getInt32("casystem_frame", 0 );
|
||||
g_settings.infobar_casystem_display = configfile.getInt32("infobar_casystem_display", 1 );//discreet ca mode default
|
||||
g_settings.infobar_casystem_dotmatrix = configfile.getInt32("infobar_casystem_dotmatrix", 0 );
|
||||
g_settings.infobar_casystem_frame = configfile.getInt32("infobar_casystem_frame", 1 );
|
||||
g_settings.scrambled_message = configfile.getBool("scrambled_message", true );
|
||||
g_settings.volume_pos = configfile.getInt32("volume_pos", CVolumeBar::VOLUMEBAR_POS_TOP_RIGHT );
|
||||
g_settings.volume_digits = configfile.getBool("volume_digits", true);
|
||||
@@ -549,9 +549,9 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.widget_fade = false;
|
||||
g_settings.widget_fade = configfile.getBool("widget_fade" , false );
|
||||
|
||||
//theme/color options
|
||||
CThemes::getTheme(configfile);
|
||||
|
||||
|
||||
g_settings.osd_colorsettings_advanced_mode = configfile.getBool("osd_colorsettings_advanced_mode", false);
|
||||
|
||||
//personalize
|
||||
g_settings.personalize_pincode = configfile.getString( "personalize_pincode", "0000" );
|
||||
@@ -1016,9 +1016,9 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setInt32("infobar_show", g_settings.infobar_show);
|
||||
configfile.setInt32("infobar_show_channellogo" , g_settings.infobar_show_channellogo );
|
||||
configfile.setInt32("infobar_progressbar" , g_settings.infobar_progressbar );
|
||||
configfile.setInt32("casystem_display" , g_settings.casystem_display );
|
||||
configfile.setInt32("casystem_dotmatrix" , g_settings.casystem_dotmatrix );
|
||||
configfile.setInt32("casystem_frame" , g_settings.casystem_frame );
|
||||
configfile.setInt32("infobar_casystem_display" , g_settings.infobar_casystem_display );
|
||||
configfile.setInt32("infobar_casystem_dotmatrix" , g_settings.infobar_casystem_dotmatrix );
|
||||
configfile.setInt32("infobar_casystem_frame" , g_settings.infobar_casystem_frame );
|
||||
configfile.setBool("scrambled_message" , g_settings.scrambled_message );
|
||||
configfile.setInt32("volume_pos" , g_settings.volume_pos );
|
||||
configfile.setBool("volume_digits", g_settings.volume_digits);
|
||||
@@ -1080,9 +1080,9 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
//widget settings
|
||||
configfile.setBool("widget_fade" , g_settings.widget_fade );
|
||||
|
||||
//theme/color options
|
||||
CThemes::setTheme(configfile);
|
||||
|
||||
|
||||
configfile.setBool("osd_colorsettings_advanced_mode", g_settings.osd_colorsettings_advanced_mode);
|
||||
|
||||
//personalize
|
||||
configfile.setString("personalize_pincode", g_settings.personalize_pincode);
|
||||
@@ -2186,6 +2186,7 @@ void CNeutrinoApp::screensaver(bool on)
|
||||
if (on)
|
||||
{
|
||||
m_screensaver = true;
|
||||
CInfoClock::getInstance()->block();
|
||||
CScreenSaver::getInstance()->Start();
|
||||
}
|
||||
else
|
||||
@@ -2205,9 +2206,8 @@ void CNeutrinoApp::RealRun(CMenuWidget &_mainMenu)
|
||||
|
||||
dprintf(DEBUG_NORMAL, "initialized everything\n");
|
||||
|
||||
//activating infoclock
|
||||
InfoClock = CInfoClock::getInstance();
|
||||
if(g_settings.mode_clock)
|
||||
g_settings.mode_clock = InfoClock->StartClock();
|
||||
|
||||
if(g_settings.power_standby || init_cec_setting)
|
||||
standbyMode(true, true);
|
||||
@@ -2525,7 +2525,7 @@ int CNeutrinoApp::showChannelList(const neutrino_msg_t _msg, bool from_menu)
|
||||
channelList_painted = true;
|
||||
|
||||
neutrino_msg_t msg = _msg;
|
||||
InfoClock->enableInfoClock(false);
|
||||
InfoClock->enableInfoClock(false);//TODO: use callback in channel list class
|
||||
StopSubtitles();
|
||||
|
||||
//_show:
|
||||
@@ -3819,17 +3819,6 @@ void CNeutrinoApp::switchTvRadioMode(const int prev_mode)
|
||||
}
|
||||
}
|
||||
|
||||
//switching clock on or off depends of current displayed or not
|
||||
void CNeutrinoApp::switchClockOnOff()
|
||||
{
|
||||
if(g_settings.mode_clock) {
|
||||
InfoClock->enableInfoClock(false);
|
||||
g_settings.mode_clock = false;
|
||||
} else {
|
||||
g_settings.mode_clock = true;
|
||||
InfoClock->enableInfoClock(true);
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************************************
|
||||
* CNeutrinoApp - exec, menuitem callback (shutdown) *
|
||||
@@ -3856,7 +3845,7 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
}
|
||||
else if (actionKey=="clock_switch")
|
||||
{
|
||||
switchClockOnOff();
|
||||
InfoClock->switchClockOnOff();
|
||||
returnval = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
else if (actionKey=="tv_radio_switch")//used in mainmenu
|
||||
|
Reference in New Issue
Block a user