# Button Pressed Style Customizer without custom property

**URL:** <https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [August 20, 2021, 3:58pm UTC](https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144 "2021-08-20T15:58:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrebro](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rrebro](https://forum.inductiveautomation.com/u/rrebro)\
**Post date:** [August 20, 2021, 3:58pm UTC](https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144/1 "2021-08-20T15:58:50Z")

</div>

I am trying to get my buttons to have a certain color background when they are pressed and I know I could create a custom property and then script that property to turn on and off with press and unpress and then run the style customizer based off that property BUT, there should be an easy way to do this without scripting like that, the button is already turning grey when pressed, why can I not change that color?

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [August 20, 2021, 4:41pm UTC](https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144/2 "2021-08-20T16:41:25Z")

</div>

For Vision this is defined in the Look and Feel JAVA Swing properties. It _may_ be possible to change that on a vision client startup, but more than likely this is hard coded and cannot be changed outside of the style customizer like you mentioned.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 20, 2021, 5:18pm UTC](https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144/3 "2021-08-20T17:18:08Z")

</div>

What Ignition version is this? The way buttons appear and can be styled in Vision changed a lot in 8.1.8; it should be a lot closer to ‘desired’ appearance.

---

<div class="post-metadata">

**Author:** ![rrebro](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rrebro](https://forum.inductiveautomation.com/u/rrebro)\
**Post date:** [August 20, 2021, 5:28pm UTC](https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144/4 "2021-08-20T17:28:59Z")

</div>

8.1.9

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [August 20, 2021, 5:29pm UTC](https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144/5 "2021-08-20T17:29:55Z")

</div>

Paul can you point to a document on how this can be done? That sounds really interesting. 🤔

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 20, 2021, 6:36pm UTC](https://forum.inductiveautomation.com/t/button-pressed-style-customizer-without-custom-property/50144/6 "2021-08-20T18:36:24Z")

</div>

Oh, I see. I didn’t read the question closely enough. @brandon1, you’re correct, this is basically just a Java Swing limitation. Swing, by design, ‘delegates’ everything about how buttons are actually rendered to the ‘look and feel’. The look and feel can choose to obey (or disregard entirely) whatever properties you have set on any given component.  
From 8.0.0 to 8.1.7, buttons had even less control over their appearance than they currently do, but in 8.1.8 we integrated a new version of our look and feel that follows the supplied properties more accurately. However, there are still fundamental limitations to Swing that we just can’t work around; there isn’t an easy way to add ‘meta’ styles as there is in CSS (and therefore Perspective).
