mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	img: apply padding around window icon only horizontally
16dbdc64changed the padding around the app icon in the titlebar to be applied both vertically and horizontally rather than only horizontally because it was more natural from a developer's perspective, but some users complained about the smaller icons in certain configurations. So let's undo the change in16dbdc64and apply the icon padding only horizontally for now. We can add configurations for the icon padding (or icon size independent from window.button.{width,height}?) later.
This commit is contained in:
		
							parent
							
								
									70fb713874
								
							
						
					
					
						commit
						6feb6589ea
					
				
					 5 changed files with 14 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -61,11 +61,11 @@ void lab_img_add_modifier(struct lab_img *img, lab_img_modifier_func_t modifier)
 | 
			
		|||
 * @img: source image
 | 
			
		||||
 * @width: width of the created buffer
 | 
			
		||||
 * @height: height of the created buffer
 | 
			
		||||
 * @padding: padding around the rendered image in the buffer
 | 
			
		||||
 * @padding_x: horizontal padding around the rendered image in the buffer
 | 
			
		||||
 * @scale: scale of the created buffer
 | 
			
		||||
 */
 | 
			
		||||
struct lab_data_buffer *lab_img_render(struct lab_img *img,
 | 
			
		||||
	int width, int height, int padding, double scale);
 | 
			
		||||
	int width, int height, int padding_x, double scale);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * lab_img_destroy() - destroy lab_img
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue