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

Blurred context-menu elements

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: fx2.0
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      2.0.0-beta-b34 on Windows 7

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: