# overrideStyle problem

**URL:** <https://forum.servoy.com/t/overridestyle-problem/8221>\
**Category:** Classic Servoy\
**Created:** [October 9, 2007, 8:42am UTC](https://forum.servoy.com/t/overridestyle-problem/8221 "2007-10-09T08:42:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [October 9, 2007, 8:42am UTC](https://forum.servoy.com/t/overridestyle-problem/8221/1 "2007-10-09T08:42:16Z")

</div>

In Servoy 3.5.1 I have a problem with the function ‘application.overrideStyle(style\_win, style\_mac)’. I defined two different Styles for Mac and Win. In Servoy Developer the forms property settings ‘styleName’ is ‘style\_win’ for all forms in the solution. While opening the Solution in a Client on a Mac, the ‘on open method’ looks for the current OS and changes the Style by:  
var vStyle = application.overrideStyle(style\_win, style\_mac)  
So far so good, styleClasses like ‘button’ or ‘field’ are changing to the ‘style\_mac’-definitions, but the styleClass ‘form’ with ‘background-color’ don’t.  
Is this ok or is this a bug?

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [October 9, 2007, 12:01pm UTC](https://forum.servoy.com/t/overridestyle-problem/8221/2 "2007-10-09T12:01:55Z")

</div>

I think I saw this somewhere else (maybe also reported by you) as well.

When this is a real issue you should report it to the support system…

---

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [October 9, 2007, 12:11pm UTC](https://forum.servoy.com/t/overridestyle-problem/8221/3 "2007-10-09T12:11:36Z")

</div>

Thank you Marcel, I reported it today to the support system!
