#666 added ALT_FONT=false to the THEME.CODE section in the Config
This commit is contained in:
		
										
											
												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,
 | 
			
		||||
			.index = 0,
 | 
			
		||||
		},
 | 
			
		||||
		.altFont = false,
 | 
			
		||||
		.altFont = getConfig()->theme.code.altFont,
 | 
			
		||||
		.event = onStudioEvent,
 | 
			
		||||
		.update = update,
 | 
			
		||||
	};
 | 
			
		||||
 
 | 
			
		||||
@@ -201,6 +201,15 @@ static void readCodeTheme(Config* config, lua_State* lua)
 | 
			
		||||
 | 
			
		||||
			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);
 | 
			
		||||
 
 | 
			
		||||
@@ -52,6 +52,8 @@ typedef struct
 | 
			
		||||
			u8 select;
 | 
			
		||||
			u8 cursor;
 | 
			
		||||
			bool shadow;
 | 
			
		||||
			bool altFont;
 | 
			
		||||
 | 
			
		||||
		} code;
 | 
			
		||||
 | 
			
		||||
		struct
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user