mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-181071 context submenu arrow icon is low res on Retina
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 147 B |
Binary file not shown.
|
After Width: | Height: | Size: 231 B |
@@ -394,19 +394,7 @@ public final class LafManagerImpl extends LafManager implements PersistentStateC
|
||||
@Nullable
|
||||
private static Icon getAquaMenuInvertedIcon() {
|
||||
if (UIUtil.isUnderAquaLookAndFeel() || (SystemInfo.isMac && UIUtil.isUnderIntelliJLaF())) {
|
||||
final Icon arrow = (Icon)UIManager.get("Menu.arrowIcon");
|
||||
if (arrow == null) return null;
|
||||
|
||||
try {
|
||||
final Method method = ReflectionUtil.getMethod(arrow.getClass(), "getInvertedIcon");
|
||||
if (method != null) {
|
||||
return (Icon)method.invoke(arrow);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
catch (InvocationTargetException | IllegalAccessException e1) {
|
||||
return null;
|
||||
}
|
||||
return AllIcons.Mac.Tree_white_right_arrow;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ Menu.border=com.intellij.ide.ui.laf.intellij.MacIntelliJMenuItemBorder
|
||||
PopupMenu.background=f6f6f6
|
||||
MenuItem.background=f6f6f6
|
||||
Menu.background=f6f6f6
|
||||
Menu.arrowIcon=AllIcons.Mac.Tree_black_right_arrow
|
||||
|
||||
SplitPane.highlight=ececec
|
||||
|
||||
|
||||
@@ -807,6 +807,7 @@ public class AllIcons {
|
||||
public static class Mac {
|
||||
public static final Icon AppIconOk512 = IconLoader.getIcon("/mac/appIconOk512.png"); // 55x55
|
||||
public static final Icon Text = IconLoader.getIcon("/mac/text.gif"); // 32x32
|
||||
public static final Icon Tree_black_right_arrow = IconLoader.getIcon("/mac/tree_black_right_arrow.png"); // 11x11
|
||||
public static final Icon Tree_white_down_arrow = IconLoader.getIcon("/mac/tree_white_down_arrow.png"); // 11x11
|
||||
public static final Icon Tree_white_right_arrow = IconLoader.getIcon("/mac/tree_white_right_arrow.png"); // 11x11
|
||||
public static final Icon YosemiteOptionButtonSelector = IconLoader.getIcon("/mac/yosemiteOptionButtonSelector.png"); // 8x12
|
||||
|
||||
Reference in New Issue
Block a user