IncDecButtons Slider Colour


The enumeration for slider colours doesn’t have anything for the inc/dec buttons, and none of the other ones affects them. The incButton and decButton members of Slider are private, so they can’t be accessed directly.

Is there a way to change the colour of the inc/dec buttons?

For now, I have declared incButton & decButton public: in juce_Slider.h and called setColour on the buttons directly, but that has a pretty bad smell to it.


i’ve noticed that too. anyway that should be handled by the look and feel :slight_smile:


Well the l+f creates the slider button, so you can either just create a special button, or because the default is to use a TextButton, you can just use the TextButton colour IDs to change its colour.