mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	LibGUI: Don't fill IconView item text background unless actually wanted
We were always filling the rect behind item texts, even when the widget had fill_with_background_color() == false.
This commit is contained in:
		
							parent
							
								
									4236127fb9
								
							
						
					
					
						commit
						226ac8a47b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -499,7 +499,8 @@ void IconView::paint_event(PaintEvent& event) | |||
|         if (item_data.selected) { | ||||
|             background_color = is_focused() ? palette().selection() : palette().inactive_selection(); | ||||
|         } else { | ||||
|             background_color = widget_background_color; | ||||
|             if (fill_with_background_color()) | ||||
|                 background_color = widget_background_color; | ||||
|         } | ||||
| 
 | ||||
|         auto icon = item_data.index.data(ModelRole::Icon); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling