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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None

      Description

      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()

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: