Fix list selection background when unfocused

It used to have the same blue bg, e.g. in the log's changes browser
when focus was on the commit list.
This commit is contained in:
Kirill Likhodedov
2014-05-16 19:35:53 +04:00
parent 98f8e9f6f0
commit ae7605573f
@@ -56,7 +56,9 @@ public abstract class ColoredListCellRenderer<T> extends SimpleColoredComponent
}
}
else {
setBackground(selected ? list.getSelectionBackground() : null);
setBackground(selected ?
hasFocus ? UIUtil.getListSelectionBackground() : UIUtil.getListUnfocusedSelectionBackground() :
UIUtil.getListBackground());
}
setPaintFocusBorder(hasFocus);