mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- colors_custom: rework colors; use Google Material Palette
TODO: make custom colors themable Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -168,6 +168,24 @@ static void set_lua_variables(lua_State *L)
|
||||
/* list of colors, exported e.g. as COL['INFOBAR_SHADOW'] */
|
||||
static table_key_u colorlist[] =
|
||||
{
|
||||
{ "COL_WHITE", MAGIC_COLOR | (COL_WHITE) },
|
||||
{ "COL_BLACK", MAGIC_COLOR | (COL_BLACK) },
|
||||
{ "COL_DARK_RED", MAGIC_COLOR | (COL_DARK_RED) },
|
||||
{ "COL_RED", MAGIC_COLOR | (COL_RED) },
|
||||
{ "COL_LIGHT_RED", MAGIC_COLOR | (COL_LIGHT_RED) },
|
||||
{ "COL_DARK_GREEN", MAGIC_COLOR | (COL_DARK_GREEN) },
|
||||
{ "COL_GREEN", MAGIC_COLOR | (COL_GREEN) },
|
||||
{ "COL_LIGHT_GREEN", MAGIC_COLOR | (COL_LIGHT_GREEN) },
|
||||
{ "COL_DARK_YELLOW", MAGIC_COLOR | (COL_DARK_YELLOW) },
|
||||
{ "COL_YELLOW", MAGIC_COLOR | (COL_YELLOW) },
|
||||
{ "COL_LIGHT_YELLOW", MAGIC_COLOR | (COL_LIGHT_YELLOW) },
|
||||
{ "COL_DARK_BLUE", MAGIC_COLOR | (COL_DARK_BLUE) },
|
||||
{ "COL_BLUE", MAGIC_COLOR | (COL_BLUE) },
|
||||
{ "COL_LIGHT_BLUE", MAGIC_COLOR | (COL_LIGHT_BLUE) },
|
||||
{ "COL_DARK_GRAY", MAGIC_COLOR | (COL_DARK_GRAY) },
|
||||
{ "COL_GRAY", MAGIC_COLOR | (COL_GRAY) },
|
||||
{ "COL_LIGHT_GRAY", MAGIC_COLOR | (COL_LIGHT_GRAY) },
|
||||
|
||||
{ "COLORED_EVENTS_CHANNELLIST", MAGIC_COLOR | (COL_COLORED_EVENTS_CHANNELLIST) },
|
||||
{ "COLORED_EVENTS_INFOBAR", MAGIC_COLOR | (COL_COLORED_EVENTS_INFOBAR) },
|
||||
{ "SHADOW", MAGIC_COLOR | (COL_SHADOW) },
|
||||
@@ -186,28 +204,16 @@ static void set_lua_variables(lua_State *L)
|
||||
{ "PROGRESSBAR_ACTIVE", MAGIC_COLOR | (COL_PROGRESSBAR_ACTIVE_PLUS_0) },
|
||||
{ "PROGRESSBAR_PASSIVE", MAGIC_COLOR | (COL_PROGRESSBAR_PASSIVE_PLUS_0) },
|
||||
{ "BACKGROUND", MAGIC_COLOR | (COL_BACKGROUND) },
|
||||
{ "DARK_RED", MAGIC_COLOR | (COL_DARK_RED0) },
|
||||
{ "DARK_GREEN", MAGIC_COLOR | (COL_DARK_GREEN0) },
|
||||
{ "DARK_BLUE", MAGIC_COLOR | (COL_DARK_BLUE0) },
|
||||
{ "LIGHT_GRAY", MAGIC_COLOR | (COL_LIGHT_GRAY0) },
|
||||
{ "DARK_GRAY", MAGIC_COLOR | (COL_DARK_GRAY0) },
|
||||
{ "RED", MAGIC_COLOR | (COL_RED0) },
|
||||
{ "GREEN", MAGIC_COLOR | (COL_GREEN0) },
|
||||
{ "YELLOW", MAGIC_COLOR | (COL_YELLOW0) },
|
||||
{ "BLUE", MAGIC_COLOR | (COL_BLUE0) },
|
||||
{ "PURP", MAGIC_COLOR | (COL_PURP0) },
|
||||
{ "LIGHT_BLUE", MAGIC_COLOR | (COL_LIGHT_BLUE0) },
|
||||
{ "WHITE", MAGIC_COLOR | (COL_WHITE0) },
|
||||
{ "BLACK", MAGIC_COLOR | (COL_BLACK0) },
|
||||
{ "COLORED_EVENTS_TEXT", (lua_Unsigned) (COL_COLORED_EVENTS_TEXT) },
|
||||
{ "INFOBAR_TEXT", (lua_Unsigned) (COL_INFOBAR_TEXT) },
|
||||
/* obsolete */ { "INFOBAR_SHADOW_TEXT", (lua_Unsigned) (COL_MENUFOOT_TEXT) }, // just here to stay backward compatible
|
||||
{ "MENUHEAD_TEXT", (lua_Unsigned) (COL_MENUHEAD_TEXT) },
|
||||
{ "MENUCONTENT_TEXT", (lua_Unsigned) (COL_MENUCONTENT_TEXT) },
|
||||
{ "MENUCONTENT_TEXT_PLUS_1", (lua_Unsigned) (COL_MENUCONTENT_TEXT_PLUS_1) },
|
||||
{ "MENUCONTENT_TEXT_PLUS_2", (lua_Unsigned) (COL_MENUCONTENT_TEXT_PLUS_2) },
|
||||
{ "MENUCONTENT_TEXT_PLUS_3", (lua_Unsigned) (COL_MENUCONTENT_TEXT_PLUS_3) },
|
||||
{ "MENUCONTENTDARK_TEXT", (lua_Unsigned) (COL_MENUCONTENTDARK_TEXT) },
|
||||
|
||||
{ "COLORED_EVENTS_TEXT", (lua_Unsigned) (COL_COLORED_EVENTS_TEXT) },
|
||||
{ "INFOBAR_TEXT", (lua_Unsigned) (COL_INFOBAR_TEXT) },
|
||||
/* obsolete */ { "INFOBAR_SHADOW_TEXT", (lua_Unsigned) (COL_MENUFOOT_TEXT) }, // just here to stay backward compatible
|
||||
{ "MENUHEAD_TEXT", (lua_Unsigned) (COL_MENUHEAD_TEXT) },
|
||||
{ "MENUCONTENT_TEXT", (lua_Unsigned) (COL_MENUCONTENT_TEXT) },
|
||||
{ "MENUCONTENT_TEXT_PLUS_1", (lua_Unsigned) (COL_MENUCONTENT_TEXT_PLUS_1) },
|
||||
{ "MENUCONTENT_TEXT_PLUS_2", (lua_Unsigned) (COL_MENUCONTENT_TEXT_PLUS_2) },
|
||||
{ "MENUCONTENT_TEXT_PLUS_3", (lua_Unsigned) (COL_MENUCONTENT_TEXT_PLUS_3) },
|
||||
{ "MENUCONTENTDARK_TEXT", (lua_Unsigned) (COL_MENUCONTENTDARK_TEXT) },
|
||||
{ "MENUCONTENTDARK_TEXT_PLUS_1", (lua_Unsigned) (COL_MENUCONTENTDARK_TEXT_PLUS_1) },
|
||||
{ "MENUCONTENTDARK_TEXT_PLUS_2", (lua_Unsigned) (COL_MENUCONTENTDARK_TEXT_PLUS_2) },
|
||||
{ "MENUCONTENTSELECTED_TEXT", (lua_Unsigned) (COL_MENUCONTENTSELECTED_TEXT) },
|
||||
|
Reference in New Issue
Block a user