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

Blurred context-menu elements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx
    • 2.0.0-beta-b34 on Windows 7

      When styling a context-menu some elements get blurred for some reason.
      {code}
      .context-menu{
          -fx-padding: 4 4 4 4;
          -fx-border-color: rgba(0%,100%,0%,20);
          -fx-background-color: #FFE;
          -fx-border-width: 1;
          -fx-border-insets: 0;
      }

      .menu-item:hover{
          -fx-background-color: #08F;
      }
      {code}
      By using the style setting above the border is not one pixel and looks blurred. If an icon is set, the icon will be blurred too, also the menu item background on hover will be blurred at the edges. By setting the border width to another value i.e. 2 the issue doesn't appear. Also wondering why the alpha value of the border isn't respected.

            ckyang Chien Yang (Inactive)
            wzberger Wolfgang Zitzelsberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: