# \[fixed\] LnF ToggleButton tick box colour hardcoded

**URL:** <https://forum.juce.com/t/fixed-lnf-togglebutton-tick-box-colour-hardcoded/17306>\
**Category:** General JUCE discussion\
**Created:** [April 16, 2016, 11:32am UTC](https://forum.juce.com/t/fixed-lnf-togglebutton-tick-box-colour-hardcoded/17306 "2016-04-16T11:32:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [April 16, 2016, 11:32am UTC](https://forum.juce.com/t/fixed-lnf-togglebutton-tick-box-colour-hardcoded/17306/1 "2016-04-16T11:32:24Z")

</div>

I realized the colours in the lookAndFeel for the tickbox in `void LookAndFeel_V2::drawTickBox (...)` are hardcoded, see [drawTickBox - github](https://github.com/julianstorer/JUCE/blob/master/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp#L298).  
For consistency I would propose to add two colourIds in ToggleButton:  
`ToggleButton::tickColourId` and `ToggleButton::tickColourDisabledId` or similar…  
An easy picking for resetting the brain 😉  
EDIT: added a [github pull request](https://github.com/julianstorer/JUCE/pull/71) fyc

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 18, 2016, 8:45am UTC](https://forum.juce.com/t/fixed-lnf-togglebutton-tick-box-colour-hardcoded/17306/2 "2016-04-18T08:45:08Z")

</div>

Thanks, seems like a sensible and easy request, I’ll take a look when I get a moment!

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [April 19, 2016, 5:58pm UTC](https://forum.juce.com/t/fixed-lnf-togglebutton-tick-box-colour-hardcoded/17306/3 "2016-04-19T17:58:37Z")

</div>

Just saw it’s in now. Thanks for fixing.
