# TextPropertyComponent setColour

**URL:** <https://forum.juce.com/t/textpropertycomponent-setcolour/20242>\
**Category:** General JUCE discussion\
**Created:** [December 12, 2016, 2:49pm UTC](https://forum.juce.com/t/textpropertycomponent-setcolour/20242 "2016-12-12T14:49:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [December 12, 2016, 2:49pm UTC](https://forum.juce.com/t/textpropertycomponent-setcolour/20242/1 "2016-12-12T14:49:10Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [December 13, 2016, 10:03am UTC](https://forum.juce.com/t/textpropertycomponent-setcolour/20242/2 "2016-12-13T10:03:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [December 13, 2016, 10:23am UTC](https://forum.juce.com/t/textpropertycomponent-setcolour/20242/3 "2016-12-13T10:23:46Z")

</div>

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