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

[CSS] Menu checkmarks / arrows lose styling information after multiple menu shows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 8u20
    • 8u20
    • javafx
    • None

      This issue was discovered as part of fixing RT-36445. When I modify modena.css to use a darker style and then running HelloMenu, I can see that initially the submenu arrows and check marks render with white, and then turn black when when hovered, as expected. However, after bringing up the menu again (and having hovered over the menu items), I can see that the arrows and check marks have turned black. See attached screenshots.

      Here's the CSS to add in to the .root of modena.css:

      -fx-base: #3f474f;
      -fx-accent: #e7eff7 ;
      -fx-default-button: #7f878f ;
      -fx-focus-color: #efefef;
      -fx-faint-focus-color: #efefef22;

        1. after.jpg
          20 kB
          Jonathan Giles
        2. Before.png.jpg
          20 kB
          Jonathan Giles

            dgrieve David Grieve
            jgiles Jonathan Giles
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: