Closed DJViking closed 2 years ago
Hi @DJViking
Sorry for the late reply.
This is more of a JavaFX question than a JMetro question. Indeed JavaFX is not compatible with web css (unfortunately). That's something I would like javafx to be but I'm not seeing that happen in the near future.
Yes you'll have to create a separate stylesheet that's compatible with web css unfortunately, that's an issue that JavaFX CSS raises..
I want to use the JMetro styling in a WebView, so that the Web Page gets the same Theme (LIGHT, DARK) as the application. Any way this can be achieved?
The only way I could affect the style of the web page was to call
setUserStyleSheetLocation
on the WebEngine:I tried using the JMetro CSS style for the Web Page, but since JavaFX CSS is not compatible with HTML CSS it did not work.
I could create an
webstyle-dark.css
andwebstyle-light.css
with the colors and fonts of JMetro, but if JMetro changes these in the future I would have to change mine.