-
Sub-task
-
Resolution: Fixed
-
P3
-
8u40
-
None
Related to the move to the SubScene usage,
we can now set the theme css (Preview > JavaFX Theme) as user-agent css, using the SubScene setUserAgentStylesheet(String url) method.
Since this api has a single url parameter, we'll have to group the theme combinations into single css files.
For instance, for "Modena High Contrast - Black on White", we will need a css file such as modena-blackOnWhite.css that would contain:
@import "modena.css";
@import "blackOnWhite.css";
we can now set the theme css (Preview > JavaFX Theme) as user-agent css, using the SubScene setUserAgentStylesheet(String url) method.
Since this api has a single url parameter, we'll have to group the theme combinations into single css files.
For instance, for "Modena High Contrast - Black on White", we will need a css file such as modena-blackOnWhite.css that would contain:
@import "modena.css";
@import "blackOnWhite.css";
- is blocked by
-
JDK-8096122 [CSS] Unable to get an effective import with a CSS file containing @import statements
- Closed
-
JDK-8097789 [CSS] Add ability to resolve the URL given with an @import statement relative to the FX runtime
- Resolved
- relates to
-
JDK-8096463 SB should resolve lookups defined in a .root style class
- Resolved
-
JDK-8097101 Setting a property from the inspector may have no effect on Preview
- Resolved