* update file icons
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 831 B |
Before Width: | Height: | Size: 957 B After Width: | Height: | Size: 957 B |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 893 B |
BIN
source/net/filebot/resources/file.subtitle@2x.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
source/net/filebot/resources/file.video@2x.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
@ -1,7 +1,5 @@
|
|||||||
|
|
||||||
package net.filebot.ui.analyze;
|
package net.filebot.ui.analyze;
|
||||||
|
|
||||||
|
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
|
|
||||||
import javax.swing.JTree;
|
import javax.swing.JTree;
|
||||||
@ -11,7 +9,6 @@ import net.filebot.ResourceManager;
|
|||||||
import net.filebot.util.ui.FancyTreeCellRenderer;
|
import net.filebot.util.ui.FancyTreeCellRenderer;
|
||||||
import net.filebot.util.ui.GradientStyle;
|
import net.filebot.util.ui.GradientStyle;
|
||||||
|
|
||||||
|
|
||||||
public class FileTreeCellRenderer extends FancyTreeCellRenderer {
|
public class FileTreeCellRenderer extends FancyTreeCellRenderer {
|
||||||
|
|
||||||
public FileTreeCellRenderer() {
|
public FileTreeCellRenderer() {
|
||||||
@ -19,10 +16,9 @@ public class FileTreeCellRenderer extends FancyTreeCellRenderer {
|
|||||||
|
|
||||||
openIcon = ResourceManager.getIcon("tree.open");
|
openIcon = ResourceManager.getIcon("tree.open");
|
||||||
closedIcon = ResourceManager.getIcon("tree.closed");
|
closedIcon = ResourceManager.getIcon("tree.closed");
|
||||||
leafIcon = ResourceManager.getIcon("tree.leaf");
|
leafIcon = ResourceManager.getIcon("file.generic");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
|
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
|
||||||
if (leaf && isFolder(value)) {
|
if (leaf && isFolder(value)) {
|
||||||
@ -36,7 +32,6 @@ public class FileTreeCellRenderer extends FancyTreeCellRenderer {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private boolean isFolder(Object value) {
|
private boolean isFolder(Object value) {
|
||||||
if (((TreeNode) value).getAllowsChildren())
|
if (((TreeNode) value).getAllowsChildren())
|
||||||
return true;
|
return true;
|
||||||
|
@ -109,7 +109,7 @@ class RenameList<E> extends FileBotList<E> {
|
|||||||
loadAction.actionPerformed(new ActionEvent(evt.getSource(), evt.getID(), evt.getActionCommand(), 0));
|
loadAction.actionPerformed(new ActionEvent(evt.getSource(), evt.getID(), evt.getActionCommand(), 0));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
actionPopup.add(new AbstractAction("Select Files", ResourceManager.getIcon("file.unknown")) {
|
actionPopup.add(new AbstractAction("Select Files", ResourceManager.getIcon("file.generic")) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent evt) {
|
public void actionPerformed(ActionEvent evt) {
|
||||||
|
@ -99,7 +99,7 @@ class SubtitleDownloadComponent extends JComponent {
|
|||||||
if (SUBTITLE_FILES.accept(value.toString()))
|
if (SUBTITLE_FILES.accept(value.toString()))
|
||||||
return ResourceManager.getIcon("file.subtitle");
|
return ResourceManager.getIcon("file.subtitle");
|
||||||
|
|
||||||
return ResourceManager.getIcon("file.unknown");
|
return ResourceManager.getIcon("file.generic");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|