#666 added ALT_FONT=false to the THEME.CODE section in the Config
This commit is contained in:
parent
ca8189d2a1
commit
db0cfed0d1
File diff suppressed because one or more lines are too long
BIN
config.tic
BIN
config.tic
Binary file not shown.
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -52,6 +52,8 @@ typedef struct
|
||||||
u8 select;
|
u8 select;
|
||||||
u8 cursor;
|
u8 cursor;
|
||||||
bool shadow;
|
bool shadow;
|
||||||
|
bool altFont;
|
||||||
|
|
||||||
} code;
|
} code;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
|
|
Loading…
Reference in New Issue