#666 added ALT_FONT=false to the THEME.CODE section in the Config

This commit is contained in:
Vadim Grigoruk 2018-08-18 09:00:59 +03:00
parent ca8189d2a1
commit db0cfed0d1
5 changed files with 13 additions and 2 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1500,7 +1500,7 @@ void initCode(Code* code, tic_mem* tic, tic_code* src)
.items = code->outline.items, .items = code->outline.items,
.index = 0, .index = 0,
}, },
.altFont = false, .altFont = getConfig()->theme.code.altFont,
.event = onStudioEvent, .event = onStudioEvent,
.update = update, .update = update,
}; };

View File

@ -201,6 +201,15 @@ static void readCodeTheme(Config* config, lua_State* lua)
lua_pop(lua, 1); lua_pop(lua, 1);
} }
{
lua_getfield(lua, -1, "ALT_FONT");
if(lua_isboolean(lua, -1))
config->data.theme.code.altFont = lua_toboolean(lua, -1);
lua_pop(lua, 1);
}
} }
lua_pop(lua, 1); lua_pop(lua, 1);

View File

@ -52,6 +52,8 @@ typedef struct
u8 select; u8 select;
u8 cursor; u8 cursor;
bool shadow; bool shadow;
bool altFont;
} code; } code;
struct struct