juce:LookAndFeelV4::drawLinearSlider paints the slider track and thumb with the same color for both isEnabled() states
That honestly didn’t look so good, especially compared with disabling other components like ComboBox. It even looked bad compared with the slider’s own textbox!
The fix is very simple though. Overriding drawLinearSlider and adding Colour::withMultipliedSaturation to these lines that sets the track color and thumb color works:
// track color
g.setColour (slider.findColour (Slider::trackColourId).withMultipliedSaturation(slider.isEnabled() ? 1.0f : 0.5f));
// thumb color
g.setColour (slider.findColour (Slider::thumbColourId).withMultipliedSaturation(slider.isEnabled() ? 1.0f : 0.5f));
Much more uniform and objectively better. I know this is such a simple fix and a two liner, but I feel like this should have worked out of the box. Especially if slider is the odd one out here. Thanks!
~hotland


