mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user