variable in the config to show/hide shadow #424
This commit is contained in:
parent
3030b5bafa
commit
fbd7203599
File diff suppressed because one or more lines are too long
BIN
config.tic
BIN
config.tic
Binary file not shown.
|
@ -83,7 +83,10 @@ static void drawCode(Code* code, bool withCursor)
|
|||
|
||||
if(code->cursor.selection && pointer >= selection.start && pointer < selection.end)
|
||||
code->tic->api.rect(code->tic, x-1, y-1, TIC_FONT_WIDTH+1, TIC_FONT_HEIGHT+1, getConfig()->theme.code.select);
|
||||
else code->tic->api.draw_char(code->tic, symbol, x+1, y+1, 0);
|
||||
else if(getConfig()->theme.code.shadow)
|
||||
{
|
||||
code->tic->api.draw_char(code->tic, symbol, x+1, y+1, 0);
|
||||
}
|
||||
|
||||
code->tic->api.draw_char(code->tic, symbol, x, y, *colorPointer);
|
||||
|
||||
|
|
|
@ -112,6 +112,15 @@ static void readCodeTheme(Config* config, lua_State* lua)
|
|||
|
||||
lua_pop(lua, 1);
|
||||
}
|
||||
|
||||
{
|
||||
lua_getfield(lua, -1, "SHADOW");
|
||||
|
||||
if(lua_isboolean(lua, -1))
|
||||
config->data.theme.code.shadow = lua_toboolean(lua, -1);
|
||||
|
||||
lua_pop(lua, 1);
|
||||
}
|
||||
}
|
||||
|
||||
lua_pop(lua, 1);
|
||||
|
|
|
@ -88,6 +88,7 @@ typedef struct
|
|||
u8 other;
|
||||
u8 select;
|
||||
u8 cursor;
|
||||
bool shadow;
|
||||
} code;
|
||||
|
||||
struct
|
||||
|
|
Loading…
Reference in New Issue