styleManager.getStyleDeclaration(style_name).setStyle("property", value);-TH --- In [email protected], "c0mpl3xxx" <ktyacke@...> wrote: > > Hi all, > I'm trying to create a set of components for a video player app that require > the ability to be styled via user supplied color options. Basically I have a > set of buttons and text objects that will receive custom color properties > from the user. This would be easy enough to accomplish using custom style > properties on the components and a little CSS; however, I can't figure out > how to make this work since the color data is dynamic and served up by the > server (i.e. I can't hard-code or create any css style sheets during the > build process). > > I am looking for any ideas / best practices on how to accomplish the > following: > > 1) Styling components using data supplied at run-time > 2) Updating specific stylesheet properties at run-time (i.e. I want to change > the fontSize value for a custom style called ".h1"). > > Ideally I'd be able to link the various components to some stored properties > (like css) and then just update those properties and have the components > automatically respond. Any suggestions would be greatly appreciated! > > Thanks! >

