Group does not inherit from .root

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 8
    • Component/s: javafx

      Modena.css specifies the background as -fx-background: derive(-fx-base, 26.4%); which should give us #F4F4F4. If you run the attached code, you'll notice that if you use:
      Scene scene = new Scene(new Group(root), 300, 250);

      the background of the window is white. On the other hand, if you use e.g.:
      Scene scene = new Scene(root, 300, 250);

      the background is correctly set (#F4F4F4). It means that Group does not inherit from .root.

      Attached are screenshots of the app in Modena normal and white on black theme.

        1. HelloWorld.java
          1 kB
          Jindrich Dinga
        2. modena-correct.png
          33 kB
          Jindrich Dinga
        3. modena-incorrect.png
          33 kB
          Jindrich Dinga
        4. modena-white-on-black-correct.png
          33 kB
          Jindrich Dinga
        5. modena-white-on-black-incorrect.png
          33 kB
          Jindrich Dinga

            Assignee:
            David Grieve
            Reporter:
            Jindrich Dinga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: