mkpaz / atlantafx

Modern JavaFX CSS theme collection with additional controls.
https://mkpaz.github.io/atlantafx
MIT License
840 stars 66 forks source link

UseragentStylesheet required? #25

Closed FlorianKirmaier closed 1 year ago

FlorianKirmaier commented 2 years ago

Small question,

does Atlantafx also work, when not setting the useragent stylesheet? Can it also work by only setting the stylesheet of the Scene?

I thought about adding an AtlantaFX Demo to the JPro Website, but changing the user agent stylesheet, would also affect the other demos.

mkpaz commented 2 years ago

Yes, it will work when added to the Scene stylesheets observable list. That in fact what Sampler uses to provide hot reload. But leaving platform UA stylesheet unchanged at the same time, means that Modena (or whatever default JavaFX theme for the target platform) styles will also be applied, so your controls will be styled from both AtlantaFX and Modena. As far as I know, it's possible to override platform UA stylesheet for specific Scene, so you probably could try it that way.