Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092547

[CSS] SceneBuilder logs WARNING: Could not resolve '-sb-base-dark' when loading fxml file

    XMLWordPrintable

    Details

      Description

      Run SceneBuilder and load IssueTrackingLite.fxml.
      Warnings ensue.

      Note that, while annoying, these warnings do not cause any issues. The styles resolve themselves on the next CSS pass. I mention this because it could be lived with for 8u20.

      I tracked the issue down to a call to applyCss() in WorkspaceControler#setPreviewStyleSheets. If I comment out that call, the warnings go away. _This is not a proposed fix_. This just confirms that it is the call to applyCss() that causes the warnings.

      At the time the applyCss() method is called, the root of the workspace (a VBox node with style-class ".root.theme-presets") has cssFlag == REAPPLY. My guess is that the reapply was defered, and then applyCss was called on a child. applyCss has logic that looks for the top-most node that needs UPDATE. This should probably look for nodes that need either UPDATE or REAPPLY.

        Attachments

          Activity

            People

            Assignee:
            dgrieve David Grieve
            Reporter:
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: