diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2019-08-25 22:00:37 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2019-08-25 22:01:29 +0300 |
commit | fd9614de0c52047720b8b29366bc514610ed2522 (patch) | |
tree | 44b73d07a54eb06cb24d8542cdaba223187b59e9 /source/blender/editors | |
parent | b876fe3f3d1f6f5017cff06f873acc9750b28179 (diff) |
UI: Dim Disabled Menu Items on Hover
Dims the text and background of disabled menu items while mouse is hovering.
Differential Revision: https://developer.blender.org/D5575
Reviewed by William Reynish
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index e112169d4da..d16986ede8f 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -2709,10 +2709,10 @@ static void widget_state_menu_item(uiWidgetType *wt, int state, int UNUSED(drawf /* active and disabled (not so common) */ if ((state & UI_BUT_DISABLED) && (state & UI_ACTIVE)) { - widget_state_blend(wt->wcol.text, wt->wcol.text_sel, 0.5f); /* draw the backdrop at low alpha, helps navigating with keys * when disabled items are active */ - copy_v4_v4_uchar(wt->wcol.inner, wt->wcol.inner_sel); + wt->wcol.text[3] = 128; + widget_state_blend(wt->wcol.inner, wt->wcol.text, 0.5f); wt->wcol.inner[3] = 64; } else { |