# Toggle switch Color modiciation when enabled vs disabled

**URL:** <https://forum.inductiveautomation.com/t/toggle-switch-color-modiciation-when-enabled-vs-disabled/88517>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 8, 2024, 2:29pm UTC](https://forum.inductiveautomation.com/t/toggle-switch-color-modiciation-when-enabled-vs-disabled/88517 "2024-04-08T14:29:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aut\_sa](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Aut\_sa](https://forum.inductiveautomation.com/u/Aut_sa)\
**Post date:** [April 8, 2024, 2:29pm UTC](https://forum.inductiveautomation.com/t/toggle-switch-color-modiciation-when-enabled-vs-disabled/88517/1 "2024-04-08T14:29:25Z")

</div>

How does one change the colour of the toggle switch so that in Selected state + enable being true; the colour of the toggle must not be grey. By default as soon as you set enabled to false, the toggleswitch goes grey.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/a/ea43fe87b85e2ca6275b8a4d8da7c7c5573c7d27.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 8, 2024, 3:06pm UTC](https://forum.inductiveautomation.com/t/toggle-switch-color-modiciation-when-enabled-vs-disabled/88517/2 "2024-04-08T15:06:35Z")

</div>

Why would you change this? Disabled input elements are universally expected to be "greyed out".

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [April 8, 2024, 3:15pm UTC](https://forum.inductiveautomation.com/t/toggle-switch-color-modiciation-when-enabled-vs-disabled/88517/3 "2024-04-08T15:15:43Z")

</div>

We don't expose disabled style properties for this (or any?) component. You're welcome to use your own custom theme files or the stylesheet.css resource to supply your own colors, but I agree with @pturmel : you'd be going against pretty universally accepted and expected behaviors if you do so.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 8, 2024, 4:13pm UTC](https://forum.inductiveautomation.com/t/toggle-switch-color-modiciation-when-enabled-vs-disabled/88517/4 "2024-04-08T16:13:58Z")

</div>

Have a look at [High Performance HMI Techniques | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/vision/common-tasks-in-vision/high-performance-hmitechniques). Use color sparingly, consistently and with purpose.
