|
|
@ -60,10 +60,11 @@ public class DarkTreeCellRendererDelegate extends TreeCellRendererDelegate imple |
|
|
|
leaf, row, isFocused); |
|
|
|
leaf, row, isFocused); |
|
|
|
renderer = prepareRendererComponent(tree, comp); |
|
|
|
renderer = prepareRendererComponent(tree, comp); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
renderer = super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, isFocused); |
|
|
|
TreeCellRenderer delegate = getDelegate(); |
|
|
|
if (renderer instanceof DefaultTreeCellRenderer) { |
|
|
|
if (delegate instanceof DefaultTreeCellRenderer) { |
|
|
|
patchIcon(tree, (DefaultTreeCellRenderer) renderer, leaf, expanded); |
|
|
|
patchIcon(tree, (DefaultTreeCellRenderer) delegate, leaf, expanded); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
renderer = super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, isFocused); |
|
|
|
} |
|
|
|
} |
|
|
|
CellUtil.setupTreeForeground(renderer, tree, selected); |
|
|
|
CellUtil.setupTreeForeground(renderer, tree, selected); |
|
|
|
CellUtil.setupTreeBackground(renderer, tree, selected, row); |
|
|
|
CellUtil.setupTreeBackground(renderer, tree, selected, row); |
|
|
|