# Overriding Introjucer-set colours with custom LookAndFeel

**URL:** <https://forum.juce.com/t/overriding-introjucer-set-colours-with-custom-lookandfeel/14154>\
**Category:** The Projucer\
**Created:** [January 10, 2015, 10:07pm UTC](https://forum.juce.com/t/overriding-introjucer-set-colours-with-custom-lookandfeel/14154 "2015-01-10T22:07:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wbajzek](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/wbajzek/32/90_2.png) [@wbajzek](https://forum.juce.com/u/wbajzek)\
**Post date:** [January 10, 2015, 10:07pm UTC](https://forum.juce.com/t/overriding-introjucer-set-colours-with-custom-lookandfeel/14154/1 "2015-01-10T22:07:12Z")

</div>

I've built the UI of my plugin using the Introjucer, and now I would like to override all the component colours with the ones I set in my custom LookAndFeel object. Although it will use my LAF class's custom drawing method for rotary sliders, it still uses the colours set in the Introjucer.&nbsp;

I've edited my main window code so the contructor contains:

```
    //[UserPreSize]
    laf.setColour(Slider::rotarySliderFillColourId, Colours::white);
    laf.setColour(Label::textColourId, Colours::white);
    LookAndFeel::setDefaultLookAndFeel(&laf);
    sendLookAndFeelChange();
    //[/UserPreSize]
```

Am I missing something?

---

<div class="post-metadata">

**Author:** ![andrewj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/andrewj/32/13428_2.png) [@andrewj](https://forum.juce.com/u/andrewj)\
**Post date:** [January 10, 2015, 11:44pm UTC](https://forum.juce.com/t/overriding-introjucer-set-colours-with-custom-lookandfeel/14154/2 "2015-01-10T23:44:00Z")

</div>

If you set the colours in IJ, then you either need to unset them (i.e. set them to default) or you have to hardcode your LnF to use the colours you want rather than the colour IDs.

If you choose the first method, then the colours won't show up in IJ, but they will in the build. The 2nd method locks your colours in and is less flexible.

---

<div class="post-metadata">

**Author:** ![wbajzek](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/wbajzek/32/90_2.png) [@wbajzek](https://forum.juce.com/u/wbajzek)\
**Post date:** [January 11, 2015, 2:51pm UTC](https://forum.juce.com/t/overriding-introjucer-set-colours-with-custom-lookandfeel/14154/3 "2015-01-11T14:51:53Z")

</div>

Ah, resetting them to the default does the trick. Thanks! I didn't realize I was backing myself into a corner when I set the colours in the IJ.
