mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	theme: add theme_finish()
This commit is contained in:
		
							parent
							
								
									9f61a819fc
								
							
						
					
					
						commit
						cb2a504440
					
				
					 4 changed files with 23 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,7 @@ void parse_hexstr(const char *hex, float *rgba);
 | 
			
		|||
 | 
			
		||||
/**
 | 
			
		||||
 * theme_init - read openbox theme and generate button textures
 | 
			
		||||
 * @theme: global theme struct
 | 
			
		||||
 * @theme: theme data
 | 
			
		||||
 * @renderer: wlr_renderer for creating button textures
 | 
			
		||||
 * @theme_name: theme-name in <theme-dir>/<theme-name>/openbox-3/themerc
 | 
			
		||||
 * Note <theme-dir> is obtained in theme-dir.c
 | 
			
		||||
| 
						 | 
				
			
			@ -50,6 +50,12 @@ void parse_hexstr(const char *hex, float *rgba);
 | 
			
		|||
void theme_init(struct theme *theme, struct wlr_renderer *renderer,
 | 
			
		||||
		const char *theme_name);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * theme_finish - free button textures
 | 
			
		||||
 * @theme: theme data
 | 
			
		||||
 */
 | 
			
		||||
void theme_finish(struct theme *theme);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * theme_builin - apply built-in theme similar to Clearlooks
 | 
			
		||||
 * Note: Only used if no theme can be found. Default values for individual
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue