mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Only highlight enabled toolbuttons on hover, not disabled ones
This commit is contained in:
@@ -108,6 +108,9 @@ void RDTweakedNativeStyle::drawComplexControl(ComplexControl control, const QSty
|
||||
backCol.setAlphaF(0.2);
|
||||
QStyle::State masked = opt->state & (State_On | State_MouseOver);
|
||||
|
||||
if(!(opt->state & State_Enabled))
|
||||
masked &= ~State_MouseOver;
|
||||
|
||||
// when the mouse is over, make it a little stronger
|
||||
if(masked && (masked & State_MouseOver))
|
||||
backCol.setAlphaF(0.4);
|
||||
|
||||
Reference in New Issue
Block a user