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

Group does not inherit from .root

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported: