TextPropertyComponent setColour


#1

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…


#2

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


#3

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