mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 05:48:01 -05:00
* fix display issues (caused by removing "extensions" from folder names)
This commit is contained in:
parent
89da5f5f7c
commit
2d82065d93
@ -20,7 +20,6 @@ import javax.swing.JList;
|
|||||||
import javax.swing.border.CompoundBorder;
|
import javax.swing.border.CompoundBorder;
|
||||||
import javax.swing.border.EmptyBorder;
|
import javax.swing.border.EmptyBorder;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
|
||||||
import net.filebot.ResourceManager;
|
import net.filebot.ResourceManager;
|
||||||
import net.filebot.similarity.Match;
|
import net.filebot.similarity.Match;
|
||||||
import net.filebot.similarity.MetricCascade;
|
import net.filebot.similarity.MetricCascade;
|
||||||
@ -31,6 +30,7 @@ import net.filebot.util.FileUtilities;
|
|||||||
import net.filebot.util.ui.DefaultFancyListCellRenderer;
|
import net.filebot.util.ui.DefaultFancyListCellRenderer;
|
||||||
import net.filebot.util.ui.GradientStyle;
|
import net.filebot.util.ui.GradientStyle;
|
||||||
import net.filebot.web.Episode;
|
import net.filebot.web.Episode;
|
||||||
|
import net.miginfocom.swing.MigLayout;
|
||||||
|
|
||||||
class RenameListCellRenderer extends DefaultFancyListCellRenderer {
|
class RenameListCellRenderer extends DefaultFancyListCellRenderer {
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer {
|
|||||||
for (int i = 0; i < path.size() - 1; i++) {
|
for (int i = 0; i < path.size() - 1; i++) {
|
||||||
float f = (path.size() <= 2) ? 1 : (float) i / (path.size() - 2);
|
float f = (path.size() <= 2) ? 1 : (float) i / (path.size() - 2);
|
||||||
Color c = interpolateHSB(pathRainbowBeginColor, pathRainbowEndColor, f);
|
Color c = interpolateHSB(pathRainbowBeginColor, pathRainbowEndColor, f);
|
||||||
html.append(String.format("<span style='color:rgb(%1$d, %2$d, %3$d)'>%4$s</span><span style='color:rgb(%1$d, %2$d, %3$d)'>/</span>", c.getRed(), c.getGreen(), c.getBlue(), escapeHTML(FileUtilities.getName(path.get(i)))));
|
html.append(String.format("<span style='color:rgb(%1$d, %2$d, %3$d)'>%4$s</span><span style='color:rgb(%1$d, %2$d, %3$d)'>/</span>", c.getRed(), c.getGreen(), c.getBlue(), escapeHTML(FileUtilities.getFolderName(path.get(i)))));
|
||||||
}
|
}
|
||||||
|
|
||||||
// only colorize extension
|
// only colorize extension
|
||||||
|
Loading…
Reference in New Issue
Block a user