mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	theme: use non-hover button variants as fallback
Some themes don't have hover variants for button pixmaps. It looks better visually to use the non-hover variants as fallbacks rather than the built-in 6x6 pixmaps.
This commit is contained in:
		
							parent
							
								
									6a2a52c0ad
								
							
						
					
					
						commit
						d207e97992
					
				
					 5 changed files with 25 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -6,6 +6,7 @@ struct lab_data_buffer;
 | 
			
		|||
 | 
			
		||||
/* button_xbm_load - Convert xbm file to buffer with cairo surface */
 | 
			
		||||
void button_xbm_load(const char *button_name, const char *alt_name,
 | 
			
		||||
	struct lab_data_buffer **buffer, char *fallback_button, float *rgba);
 | 
			
		||||
	struct lab_data_buffer **buffer, const char *fallback_button,
 | 
			
		||||
	float *rgba);
 | 
			
		||||
 | 
			
		||||
#endif /* LABWC_BUTTON_XBM_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -92,6 +92,7 @@ struct theme {
 | 
			
		|||
	struct lab_data_buffer *button_iconify_inactive_unpressed;
 | 
			
		||||
	struct lab_data_buffer *button_menu_inactive_unpressed;
 | 
			
		||||
 | 
			
		||||
	/* hover variants are optional and may be NULL */
 | 
			
		||||
	struct lab_data_buffer *button_close_active_hover;
 | 
			
		||||
	struct lab_data_buffer *button_maximize_active_hover;
 | 
			
		||||
	struct lab_data_buffer *button_restore_active_hover;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue