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:
2015-11-19 15:59:48 +01:00
parent 3a2e7b85f8
commit 9f101bddbc
18 changed files with 725 additions and 361 deletions

View File

@@ -317,11 +317,23 @@ typedef enum
LOCALE_CLOCK_SWITCH_OFF,
LOCALE_CLOCK_SWITCH_ON,
LOCALE_COLOR_GRADIENT,
LOCALE_COLOR_GRADIENT_C2C,
LOCALE_COLOR_GRADIENT_A2B,
LOCALE_COLOR_GRADIENT_B2A,
LOCALE_COLOR_GRADIENT_D2L,
LOCALE_COLOR_GRADIENT_DLD,
LOCALE_COLOR_GRADIENT_L2D,
LOCALE_COLOR_GRADIENT_LDL,
LOCALE_COLOR_GRADIENT_MODE_DIRECTION,
LOCALE_COLOR_GRADIENT_MODE_DIRECTION_HOR,
LOCALE_COLOR_GRADIENT_MODE_DIRECTION_VER,
LOCALE_COLOR_GRADIENT_SEPARATOR_ENABLE,
LOCALE_COLORCHOOSER_ALPHA,
LOCALE_COLORCHOOSER_BLUE,
LOCALE_COLORCHOOSER_GREEN,
LOCALE_COLORCHOOSER_RED,
LOCALE_COLORCHOOSER_SAVE,
LOCALE_COLORMENU_ADVANCED_MODE_OFF,
LOCALE_COLORMENU_ADVANCED_MODE_ON,
LOCALE_COLORMENU_BACKGROUND,
LOCALE_COLORMENU_CLOCK_TEXTCOLOR,
LOCALE_COLORMENU_CONTRAST_FONTS,
@@ -1004,7 +1016,8 @@ typedef enum
LOCALE_MENU_HINT_CLOCK_SIZE,
LOCALE_MENU_HINT_CLOCK_TEXTCOLOR,
LOCALE_MENU_HINT_COLOR_GRADIENT,
LOCALE_MENU_HINT_COLOR_GRADIENT_C2C,
LOCALE_MENU_HINT_COLOR_GRADIENT_DIRECTION,
LOCALE_MENU_HINT_COLOR_GRADIENT_SEPARATOR_ENABLE,
LOCALE_MENU_HINT_COLORED_EVENTS,
LOCALE_MENU_HINT_COLORED_EVENTS_TEXTCOLOR,
LOCALE_MENU_HINT_COLORS,
@@ -1499,6 +1512,7 @@ typedef enum
LOCALE_MISCSETTINGS_INFOBAR_DISP_4,
LOCALE_MISCSETTINGS_INFOBAR_DISP_5,
LOCALE_MISCSETTINGS_INFOBAR_DISP_6,
LOCALE_MISCSETTINGS_INFOBAR_GRADIENT_BODY,
LOCALE_MISCSETTINGS_INFOBAR_GRADIENT_BOTTOM,
LOCALE_MISCSETTINGS_INFOBAR_GRADIENT_TOP,
LOCALE_MISCSETTINGS_INFOBAR_LOGO_HDD_DIR,

View File

@@ -317,11 +317,23 @@ const char * locale_real_names[] =
"clock_switch_off",
"clock_switch_on",
"color.gradient",
"color.gradient_c2c",
"color.gradient_a2b",
"color.gradient_b2a",
"color.gradient_d2l",
"color.gradient_dld",
"color.gradient_l2d",
"color.gradient_ldl",
"color.gradient_mode_direction",
"color.gradient_mode_direction_hor",
"color.gradient_mode_direction_ver",
"color.gradient_separator_enable",
"colorchooser.alpha",
"colorchooser.blue",
"colorchooser.green",
"colorchooser.red",
"colorchooser.save",
"colormenu.advanced_mode_off",
"colormenu.advanced_mode_on",
"colormenu.background",
"colormenu.clock_textcolor",
"colormenu.contrast_fonts",
@@ -1004,7 +1016,8 @@ const char * locale_real_names[] =
"menu.hint_clock_size",
"menu.hint_clock_textcolor",
"menu.hint_color_gradient",
"menu.hint_color_gradient_c2c",
"menu.hint_color_gradient_direction",
"menu.hint_color_gradient_separator_enable",
"menu.hint_colored_events",
"menu.hint_colored_events_textcolor",
"menu.hint_colors",
@@ -1499,6 +1512,7 @@ const char * locale_real_names[] =
"miscsettings.infobar_disp_4",
"miscsettings.infobar_disp_5",
"miscsettings.infobar_disp_6",
"miscsettings.infobar_gradient_body",
"miscsettings.infobar_gradient_bottom",
"miscsettings.infobar_gradient_top",
"miscsettings.infobar_logo_hdd_dir",

View File

@@ -61,6 +61,8 @@ struct SNeutrinoTheme
unsigned char menu_Head_Text_blue;
int menu_Head_gradient;
int menu_Head_gradient_direction;
int menu_Separator_gradient_enable;
unsigned char menu_Content_alpha;
unsigned char menu_Content_red;
@@ -93,6 +95,9 @@ struct SNeutrinoTheme
unsigned char menu_Content_inactive_Text_blue;
int menu_Hint_gradient;
int menu_Hint_gradient_direction;
int menu_ButtonBar_gradient;
int menu_ButtonBar_gradient_direction;
unsigned char infobar_alpha;
unsigned char infobar_red;
@@ -110,7 +115,11 @@ struct SNeutrinoTheme
unsigned char infobar_Text_blue;
int infobar_gradient_top;
int infobar_gradient_top_direction;
int infobar_gradient_body;
int infobar_gradient_body_direction;
int infobar_gradient_bottom;
int infobar_gradient_bottom_direction;
unsigned char colored_events_alpha;
unsigned char colored_events_red;
@@ -124,7 +133,6 @@ struct SNeutrinoTheme
unsigned char clock_Digit_red;
unsigned char clock_Digit_green;
unsigned char clock_Digit_blue;
int gradient_c2c;
};
struct SNeutrinoSettings
@@ -171,9 +179,9 @@ struct SNeutrinoSettings
int progressbar_timescale_green;
int progressbar_timescale_yellow;
int progressbar_timescale_invert;
int casystem_display;
int casystem_dotmatrix;
int casystem_frame;
int infobar_casystem_display;
int infobar_casystem_dotmatrix;
int infobar_casystem_frame;
int scrambled_message;
int volume_pos;
int volume_digits;
@@ -382,7 +390,9 @@ struct SNeutrinoSettings
//widget settings
int widget_fade;
//theme/color options
SNeutrinoTheme theme;
bool osd_colorsettings_advanced_mode;
int contrast_fonts;