Page MenuHome

UI: Hover States

Authored by Harley Acheson (harley) on Oct 19 2019, 1:52 AM.



As you move your mouse around the Blender interface you will find that most active items highlight as you hover above them, but some items do not. And others highlight with varying weight.

The following patch attempts to unify hover states a bit. Once applied everything highlights, does so with text color, background color, and with outline, and generally tries to make hover have similar weight no matter where you move.

Following is a good illustration. The top shows how it looks now, bottom after the patch. In the top you notice that the selected item does not highlight at all with mouse hover. The bottom ones all highlight and have slightly nicer contract. The right-most item looks less washed-out but still highlighted.

But best to apply this patch and just give it a try.

Diff Detail

rB Blender

Event Timeline

This revision is now accepted and ready to land.Oct 29 2019, 4:22 PM

This could be added Internal Color Utilities section of the code.

suggest color_mul_hsl_v3.


No need to handle alpha, the this function can take ch[3].


Would keep the function name, since we have the term active color used elsewhere in the code. UI_ACTIVE, but->active.

Updated to reflect all the changes suggested by Campbell:

  • "adjust_hsl" function using only ch[3] since not changing alpha
  • "adjust_hsl" function renamed "color_mul_hsl_v3" and moved to "Internal Color Utilities" section
  • "widget_hover_color" renamed to current "widget_active_color" instead
This revision was automatically updated to reflect the committed changes.