-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSSFX doesn't monitor changes in Application stylesheet #36
Comments
@McFoggy Any news on this issue? |
Not really. I had a quick look at it but the global stylesheet is not Observable and is a bit special thus it will require a special handling and probably either a specific monitoring or a new API to be called by CSSFX users. |
Also, new JavaFX versions (9+) seems to have introduced a regression. In JavaFX 8 I was able to change the user agent stylesheet and then call reapplyCss() or impl_reapplyCss() and the new style would be applied |
@palexdev please do not mix problems in the same issue, open another issue describe the problem and potentially provide a reproducer. |
Sorry I thought it might be a useful information. |
It looks like a bit tricky issue or inappropriate use case. Do you know any workaround? I'd like to use CssFx, but I also want to have one global CSS file, which I don't need to include in every new window opened by application. The code above was the only solution I'd found out. It's not the best one, because then I need to have modena.css included in my global.css file via |
The only workaround I see right now is to include your CSS in the top windows instead. |
When I define global CSS file for all stages of javafx application (see below), then changes aren't reloaded.
The text was updated successfully, but these errors were encountered: