UI: dim icons in inactive tabs, similar to text
This makes the properties editor navigation bar less saturated. Internally the icon theme coloring was refactored a bit to move more towards the button drawing code.
This commit is contained in:
		@@ -478,7 +478,7 @@ static void file_draw_preview(uiBlock *block,
 | 
			
		||||
      GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA);
 | 
			
		||||
 | 
			
		||||
  if (icon) {
 | 
			
		||||
    UI_icon_draw_ex((float)xco, (float)yco, icon, icon_aspect, 1.0f, 0.0f, NULL);
 | 
			
		||||
    UI_icon_draw_ex((float)xco, (float)yco, icon, icon_aspect, 1.0f, 0.0f, NULL, false);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /* border */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user