TextPropertyComponent setColour

Any chance you guys could add a highlightedTextColourId to TextPropertyComponent::ColourIds ? I can’t seem to change it from the default JUCE highlighted text colour…

Hi Rory,

The TextPropertyComponent just contains a TextEditor internally so you could do something like:

propertyPanel.getLookAndFeel().setColour (TextEditor::ColourIds::highlightedTextColourId, Colours::hotpink);

But that would also change the highlighted text colour for all of your TextEditors - would that work for you?

Ed

I think I can make that work Ed. Cheers. I tried something like this yesterday, but forgot the all important ‘getLookAndFeel()’!

1 Like