mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 10:51:12 +02:00
CInfoClock: Use dynamic font for display
This commit is contained in:
@@ -283,6 +283,8 @@ typedef enum
|
||||
LOCALE_CI_SETTINGS,
|
||||
LOCALE_CI_TIMEOUT,
|
||||
LOCALE_CI_WAITING,
|
||||
LOCALE_CLOCK_SIZE,
|
||||
LOCALE_CLOCK_SIZE_HEIGHT,
|
||||
LOCALE_CLOCK_SWITCH_OFF,
|
||||
LOCALE_CLOCK_SWITCH_ON,
|
||||
LOCALE_COLORCHOOSER_ALPHA,
|
||||
@@ -837,6 +839,7 @@ typedef enum
|
||||
LOCALE_MENU_HINT_CHANNELLIST_SETUP,
|
||||
LOCALE_MENU_HINT_CHANNELS,
|
||||
LOCALE_MENU_HINT_CI,
|
||||
LOCALE_MENU_HINT_CLOCK_SIZE,
|
||||
LOCALE_MENU_HINT_COLORS,
|
||||
LOCALE_MENU_HINT_CONTENT_BACK,
|
||||
LOCALE_MENU_HINT_CONTENT_TEXTCOLOR,
|
||||
@@ -901,6 +904,7 @@ typedef enum
|
||||
LOCALE_MENU_HINT_INFOBAR_SETUP,
|
||||
LOCALE_MENU_HINT_INFOBAR_TEXTCOLOR,
|
||||
LOCALE_MENU_HINT_INFOBAR_TUNER,
|
||||
LOCALE_MENU_HINT_INFOCLOCK_SETUP,
|
||||
LOCALE_MENU_HINT_KEEP_NUMBERS,
|
||||
LOCALE_MENU_HINT_KEY_ADDRECORD,
|
||||
LOCALE_MENU_HINT_KEY_ADDREMIND,
|
||||
@@ -1267,6 +1271,7 @@ typedef enum
|
||||
LOCALE_MISCSETTINGS_INFOBAR_SHOW_RES_SIMPLE,
|
||||
LOCALE_MISCSETTINGS_INFOBAR_SHOW_SYSFS_HDD,
|
||||
LOCALE_MISCSETTINGS_INFOBAR_SHOW_TUNER,
|
||||
LOCALE_MISCSETTINGS_INFOCLOCK,
|
||||
LOCALE_MISCSETTINGS_PROGRESSBAR,
|
||||
LOCALE_MISCSETTINGS_PROGRESSBAR_COLOR,
|
||||
LOCALE_MISCSETTINGS_PROGRESSBAR_DESIGN,
|
||||
|
@@ -283,6 +283,8 @@ const char * locale_real_names[] =
|
||||
"ci.settings",
|
||||
"ci.timeout",
|
||||
"ci.waiting",
|
||||
"clock_size",
|
||||
"clock_size_height",
|
||||
"clock_switch_off",
|
||||
"clock_switch_on",
|
||||
"colorchooser.alpha",
|
||||
@@ -837,6 +839,7 @@ const char * locale_real_names[] =
|
||||
"menu.hint_channellist_setup",
|
||||
"menu.hint_channels",
|
||||
"menu.hint_ci",
|
||||
"menu.hint_clock_size",
|
||||
"menu.hint_colors",
|
||||
"menu.hint_content_back",
|
||||
"menu.hint_content_textcolor",
|
||||
@@ -901,6 +904,7 @@ const char * locale_real_names[] =
|
||||
"menu.hint_infobar_setup",
|
||||
"menu.hint_infobar_textcolor",
|
||||
"menu.hint_infobar_tuner",
|
||||
"menu.hint_infoclock_setup",
|
||||
"menu.hint_keep_numbers",
|
||||
"menu.hint_key_addrecord",
|
||||
"menu.hint_key_addremind",
|
||||
@@ -1267,6 +1271,7 @@ const char * locale_real_names[] =
|
||||
"miscsettings.infobar_show_res_simple",
|
||||
"miscsettings.infobar_show_sysfs_hdd",
|
||||
"miscsettings.infobar_show_tuner",
|
||||
"miscsettings.infoclock",
|
||||
"miscsettings.progressbar",
|
||||
"miscsettings.progressbar_color",
|
||||
"miscsettings.progressbar_design",
|
||||
|
@@ -52,7 +52,6 @@
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
#include <gui/widget/stringinput.h>
|
||||
#include <gui/audiomute.h>
|
||||
#include <gui/infoclock.h>
|
||||
#include <driver/volume.h>
|
||||
#include <system/helpers.h>
|
||||
@@ -322,10 +321,6 @@ bool CFontSizeNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
hintBox.hide();
|
||||
/* recalculate infoclock/muteicon/volumebar */
|
||||
CVolumeHelper::getInstance()->refresh();
|
||||
if (CNeutrinoApp::getInstance()->isMuted()) {
|
||||
CAudioMute::getInstance()->enableMuteIcon(false);
|
||||
CAudioMute::getInstance()->enableMuteIcon(true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -538,6 +538,8 @@ struct SNeutrinoSettings
|
||||
FONT_TYPE_COUNT
|
||||
};
|
||||
|
||||
int infoClockFontSize;
|
||||
|
||||
// lcdd
|
||||
enum LCD_SETTINGS {
|
||||
LCD_BRIGHTNESS = 0,
|
||||
|
Reference in New Issue
Block a user