From 5a539d0134f909ab3b697060f9f5490a3b3bcd2f Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 25 Nov 2021 21:47:09 +0100 Subject: [PATCH] - luainstance: fix custom colors Signed-off-by: Thilo Graf --- src/gui/lua/luainstance.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/gui/lua/luainstance.cpp b/src/gui/lua/luainstance.cpp index 87ba77f98..552e25792 100644 --- a/src/gui/lua/luainstance.cpp +++ b/src/gui/lua/luainstance.cpp @@ -168,23 +168,23 @@ 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) }, + { "WHITE", (lua_Unsigned)(COL_WHITE) }, + { "BLACK", (lua_Unsigned)(COL_BLACK) }, + { "DARK_RED", (lua_Unsigned)(COL_DARK_RED) }, + { "RED", (lua_Unsigned)(COL_RED) }, + { "LIGHT_RED", (lua_Unsigned)(COL_LIGHT_RED) }, + { "DARK_GREEN", (lua_Unsigned)(COL_DARK_GREEN) }, + { "GREEN", (lua_Unsigned)(COL_GREEN) }, + { "LIGHT_GREEN", (lua_Unsigned)(COL_LIGHT_GREEN) }, + { "DARK_YELLOW", (lua_Unsigned)(COL_DARK_YELLOW) }, + { "YELLOW", (lua_Unsigned)(COL_YELLOW) }, + { "LIGHT_YELLOW", (lua_Unsigned)(COL_LIGHT_YELLOW) }, + { "DARK_BLUE", (lua_Unsigned)(COL_DARK_BLUE) }, + { "BLUE", (lua_Unsigned)(COL_BLUE) }, + { "LIGHT_BLUE", (lua_Unsigned)(COL_LIGHT_BLUE) }, + { "DARK_GRAY", (lua_Unsigned)(COL_DARK_GRAY) }, + { "GRAY", (lua_Unsigned)(COL_GRAY) }, + { "LIGHT_GRAY", (lua_Unsigned)(COL_LIGHT_GRAY) }, { "COLORED_EVENTS_CHANNELLIST", MAGIC_COLOR | (COL_COLORED_EVENTS_CHANNELLIST) }, { "COLORED_EVENTS_INFOBAR", MAGIC_COLOR | (COL_COLORED_EVENTS_INFOBAR) },