mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- infoclock: add some features
* add shadow to infoclock * rename some locals * change default height of clock * add option to switch bachground on/off (default off) * add option to switch seconds on/off (default on)
This commit is contained in:
@@ -1016,6 +1016,16 @@ void COsdSetup::showOsdInfoclockSetup(CMenuWidget *menu_infoclock)
|
||||
CMenuOptionNumberChooser* mn = new CMenuOptionNumberChooser(LOCALE_CLOCK_SIZE_HEIGHT, &g_settings.infoClockFontSize, true, 30, 120);
|
||||
mn->setHint("", LOCALE_MENU_HINT_CLOCK_SIZE);
|
||||
menu_infoclock->addItem(mn);
|
||||
|
||||
// clock with seconds
|
||||
CMenuOptionChooser *mc = new CMenuOptionChooser(LOCALE_CLOCK_SECONDS, &g_settings.infoClockSeconds, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CLOCK_SECONDS);
|
||||
menu_infoclock->addItem(mc);
|
||||
|
||||
// clock with background
|
||||
mc = new CMenuOptionChooser(LOCALE_CLOCK_BACKGROUND, &g_settings.infoClockBackground, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CLOCK_BACKGROUND);
|
||||
menu_infoclock->addItem(mc);
|
||||
}
|
||||
|
||||
bool COsdSetup::changeNotify(const neutrino_locale_t OptionName, void * data)
|
||||
|
Reference in New Issue
Block a user