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

[CSS] CustomColorDialog cannot be skinned by adding stylesheet to scene.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u20
    • javafx
    • None

      If I add a style for .custom-color-dialog to a user-agent stylesheet, the style has no effect. Only if the style is added to a user-agent stylesheet (i.e., Application.setUserAgentStylesheet("blah")) do the styles have any affect. Even scene.setUserAgentStylesheet has no effect.

      The issue is that CSS looks for styles by going from a node to node.getStyleableParent() and CustomColorDialog does not return the correct value for getStyleableParent()

            dgrieve David Grieve
            dgrieve David Grieve
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: