Java 类com.intellij.ui.mac.MacPopupMenuUI 实例源码

项目:intellij-ce-playground    文件:LafManagerImpl.java   
private static void fixMenuIssues(UIDefaults uiDefaults) {
  if (UIUtil.isUnderAquaLookAndFeel() || (SystemInfo.isMac && UIUtil.isUnderIntelliJLaF())) {
    // update ui for popup menu to get round corners
    uiDefaults.put("PopupMenuUI", MacPopupMenuUI.class.getCanonicalName());
    uiDefaults.put("Menu.invertedArrowIcon", getAquaMenuInvertedIcon());
    uiDefaults.put("Menu.disabledArrowIcon", getAquaMenuDisabledIcon());
  }
  else if (UIUtil.isUnderJGoodiesLookAndFeel()) {
    uiDefaults.put("Menu.opaque", true);
    uiDefaults.put("MenuItem.opaque", true);
  }
  uiDefaults.put("MenuItem.background", UIManager.getColor("Menu.background"));
}
项目:tools-idea    文件:LafManagerImpl.java   
private static void fixMenuIssues(UIDefaults uiDefaults) {
  if (UIUtil.isUnderAquaLookAndFeel()) {
    // update ui for popup menu to get round corners
    uiDefaults.put("PopupMenuUI", MacPopupMenuUI.class.getCanonicalName());
    uiDefaults.put("Menu.invertedArrowIcon", getAquaMenuInvertedIcon());
    uiDefaults.put("Menu.disabledArrowIcon", getAquaMenuDisabledIcon());
  }
  else if (UIUtil.isUnderJGoodiesLookAndFeel()) {
    uiDefaults.put("Menu.opaque", true);
    uiDefaults.put("MenuItem.opaque", true);
  }
  uiDefaults.put("MenuItem.background", UIManager.getColor("Menu.background"));
}
项目:consulo    文件:LafManagerImpl.java   
private static void fixMenuIssues(UIDefaults uiDefaults) {
  if (UIUtil.isUnderAquaLookAndFeel()) {
    // update ui for popup menu to get round corners
    uiDefaults.put("PopupMenuUI", MacPopupMenuUI.class.getCanonicalName());
    uiDefaults.put("Menu.invertedArrowIcon", getAquaMenuInvertedIcon());
    uiDefaults.put("Menu.disabledArrowIcon", getAquaMenuDisabledIcon());
  }

  uiDefaults.put("MenuItem.background", UIManager.getColor("Menu.background"));
}