diff --git a/platform/platform-api/src/com/intellij/ui/ColoredTreeCellRenderer.java b/platform/platform-api/src/com/intellij/ui/ColoredTreeCellRenderer.java index 3e3485c79515..5a4c9755a8a8 100644 --- a/platform/platform-api/src/com/intellij/ui/ColoredTreeCellRenderer.java +++ b/platform/platform-api/src/com/intellij/ui/ColoredTreeCellRenderer.java @@ -142,7 +142,7 @@ public abstract class ColoredTreeCellRenderer extends SimpleColoredComponent imp * It guaranties readability of selected text in any LAF. */ public void append(@NotNull @Nls String fragment, @NotNull SimpleTextAttributes attributes, boolean isMainText) { - if (mySelected && (myFocused || UIUtil.isUnderNimbusLookAndFeel())) { + if (mySelected && myFocused) { super.append(fragment, new SimpleTextAttributes(attributes.getStyle(), UIUtil.getTreeSelectionForeground()), isMainText); } else if (mySelected && UIUtil.isUnderAquaBasedLookAndFeel()) { diff --git a/platform/util/src/com/intellij/util/ui/UIUtil.java b/platform/util/src/com/intellij/util/ui/UIUtil.java index d271a48e1e76..0ee3eafc737f 100644 --- a/platform/util/src/com/intellij/util/ui/UIUtil.java +++ b/platform/util/src/com/intellij/util/ui/UIUtil.java @@ -947,7 +947,7 @@ public class UIUtil { } public static boolean isFullRowSelectionLAF() { - return isUnderNimbusLookAndFeel() || isUnderQuaquaLookAndFeel(); + return isUnderQuaquaLookAndFeel(); } public static boolean isUnderNativeMacLookAndFeel() { diff --git a/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java b/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java index 42e3482a8f85..30e58d5e1039 100644 --- a/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java +++ b/platform/util/src/com/intellij/util/ui/tree/WideSelectionTreeUI.java @@ -42,10 +42,10 @@ public class WideSelectionTreeUI extends BasicTreeUI { private static final Icon TREE_COLLAPSED_ICON = UIUtil.getTreeCollapsedIcon(); private static final Icon TREE_EXPANDED_ICON = UIUtil.getTreeExpandedIcon(); - private static final Icon TREE_SELECTED_COLLAPSED_ICON = UIUtil.isUnderAquaBasedLookAndFeel() ? AllIcons.Mac.Tree_white_right_arrow - : TREE_COLLAPSED_ICON; - private static final Icon TREE_SELECTED_EXPANDED_ICON = UIUtil.isUnderAquaBasedLookAndFeel() ? AllIcons.Mac.Tree_white_down_arrow - : TREE_EXPANDED_ICON; + private static final Icon TREE_SELECTED_COLLAPSED_ICON = UIUtil.isUnderAquaBasedLookAndFeel() || UIUtil.isUnderNimbusLookAndFeel() + ? AllIcons.Mac.Tree_white_right_arrow : TREE_COLLAPSED_ICON; + private static final Icon TREE_SELECTED_EXPANDED_ICON = UIUtil.isUnderAquaBasedLookAndFeel() || UIUtil.isUnderNimbusLookAndFeel() + ? AllIcons.Mac.Tree_white_down_arrow : TREE_EXPANDED_ICON; private static final Border LIST_BACKGROUND_PAINTER = (Border)UIManager.get("List.sourceListBackgroundPainter"); private static final Border LIST_SELECTION_BACKGROUND_PAINTER = (Border)UIManager.get("List.sourceListSelectionBackgroundPainter");