mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] fix selected unfocused background
This commit is contained in:
+4
@@ -24,6 +24,7 @@ import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.ui.ColoredListCellRenderer;
|
||||
import com.intellij.ui.SimpleTextAttributes;
|
||||
import com.intellij.util.PlatformIcons;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.io.File;
|
||||
@@ -53,6 +54,9 @@ public class VirtualFileListCellRenderer extends ColoredListCellRenderer {
|
||||
final FileStatus fileStatus = myIgnoreFileStatus ? FileStatus.NOT_CHANGED : getStatus(value, path);
|
||||
append(getName(path), new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, fileStatus.getColor(), null));
|
||||
putParentPath(value, path, path);
|
||||
setBackground(selected
|
||||
? (hasFocus ? UIUtil.getListSelectionBackground() : UIUtil.getListUnfocusedSelectionBackground())
|
||||
: UIUtil.getListBackground());
|
||||
}
|
||||
|
||||
protected String getName(FilePath path) {
|
||||
|
||||
Reference in New Issue
Block a user