mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better fix for list background that works with group titles
This commit is contained in:
+5
-1
@@ -814,12 +814,16 @@ public class FlatWelcomeFrame extends JFrame implements IdeFrame, Disposable, Ac
|
||||
return myTextLabel;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Color getBackground() {
|
||||
return getProjectsBackground();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void customizeComponent(JList list, Object value, boolean isSelected) {
|
||||
if (myTextLabel != null) {
|
||||
myTextLabel.setText(getActionText(((AnAction)value)));
|
||||
myTextLabel.setIcon(((AnAction)value).getTemplatePresentation().getIcon());
|
||||
myTextLabel.setBackground(isSelected ? UIUtil.getListBackground(true) : getProjectsBackground());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user