* experiment with high-dpi icons
BIN
source/net/filebot/resources/action.copy.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
source/net/filebot/resources/action.copy@2x.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
source/net/filebot/resources/action.hardlink.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
source/net/filebot/resources/action.hardlink@2x.png
Executable file
After Width: | Height: | Size: 3.2 KiB |
BIN
source/net/filebot/resources/action.keeplink.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
source/net/filebot/resources/action.keeplink@2x.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
source/net/filebot/resources/action.symlink.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
source/net/filebot/resources/action.symlink@2x.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 957 B |
BIN
source/net/filebot/resources/rename.action.copy@2x.png
Executable file
After Width: | Height: | Size: 998 B |
BIN
source/net/filebot/resources/rename.action.hardlink.png
Normal file → Executable file
Before Width: | Height: | Size: 679 B After Width: | Height: | Size: 650 B |
BIN
source/net/filebot/resources/rename.action.hardlink@2x.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 962 B |
BIN
source/net/filebot/resources/rename.action.keeplink@2x.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 570 B After Width: | Height: | Size: 1.1 KiB |
BIN
source/net/filebot/resources/rename.action.symlink@2x.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
source/net/filebot/resources/search.generic.png
Executable file → Normal file
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 605 B |
BIN
source/net/filebot/resources/search.generic@2x.png
Normal file
After Width: | Height: | Size: 762 B |
@ -563,7 +563,7 @@ public class RenamePanel extends JComponent {
|
|||||||
|
|
||||||
actionPopup.addDescription(new JLabel("Action:"));
|
actionPopup.addDescription(new JLabel("Action:"));
|
||||||
for (StandardRenameAction action : EnumSet.of(StandardRenameAction.MOVE, StandardRenameAction.COPY, StandardRenameAction.KEEPLINK, StandardRenameAction.SYMLINK, StandardRenameAction.HARDLINK)) {
|
for (StandardRenameAction action : EnumSet.of(StandardRenameAction.MOVE, StandardRenameAction.COPY, StandardRenameAction.KEEPLINK, StandardRenameAction.SYMLINK, StandardRenameAction.HARDLINK)) {
|
||||||
actionPopup.add(new SetRenameAction(action, action.getDisplayName(), ResourceManager.getIcon("rename.action." + action.toString().toLowerCase())));
|
actionPopup.add(new SetRenameAction(action));
|
||||||
}
|
}
|
||||||
|
|
||||||
return actionPopup;
|
return actionPopup;
|
||||||
@ -749,7 +749,7 @@ public class RenamePanel extends JComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (preset.getRenameAction() != null) {
|
if (preset.getRenameAction() != null) {
|
||||||
new SetRenameAction(preset.getRenameAction(), preset.getRenameAction().getDisplayName(), ResourceManager.getIcon("rename.action." + preset.getRenameAction().toString().toLowerCase())).actionPerformed(evt);
|
new SetRenameAction(preset.getRenameAction()).actionPerformed(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
super.actionPerformed(evt);
|
super.actionPerformed(evt);
|
||||||
@ -786,8 +786,8 @@ public class RenamePanel extends JComponent {
|
|||||||
|
|
||||||
private final StandardRenameAction action;
|
private final StandardRenameAction action;
|
||||||
|
|
||||||
public SetRenameAction(StandardRenameAction action, String name, Icon icon) {
|
public SetRenameAction(StandardRenameAction action) {
|
||||||
super(name, icon);
|
super(action.getDisplayName(), ResourceManager.getIcon("rename.action." + action.name().toLowerCase()));
|
||||||
this.action = action;
|
this.action = action;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -798,7 +798,7 @@ public class RenamePanel extends JComponent {
|
|||||||
} else {
|
} else {
|
||||||
renameAction.putValue(RenameAction.RENAME_ACTION, action);
|
renameAction.putValue(RenameAction.RENAME_ACTION, action);
|
||||||
renameAction.putValue(NAME, this.getValue(NAME));
|
renameAction.putValue(NAME, this.getValue(NAME));
|
||||||
renameAction.putValue(SMALL_ICON, this.getValue(SMALL_ICON));
|
renameAction.putValue(SMALL_ICON, ResourceManager.getIcon("action." + action.name().toLowerCase()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|