Add lock badge icon.

Former-commit-id: 6bf34f4f4bd3e4c5ec70e54d4ab7980f214c9710
This commit is contained in:
David Kocher
2016-12-03 18:12:35 +01:00
parent a95ab3075f
commit 20cd6dc58d
3 changed files with 2814 additions and 2786 deletions
File diff suppressed because it is too large Load Diff
@@ -250,10 +250,13 @@ public class NSImageIconCache extends AbstractIconCache<NSImage> {
*/
@Override
public NSImage fileIcon(final Path path, final Integer size) {
if(path.getType().contains(Path.Type.encrypted)) {
final NSImage badge = this.iconNamed("NSLockUnlockedTemplate", size);
badge.setName("encrypted");
return this.folderIcon(size, badge);
if(path.getType().contains(Path.Type.decrypted)) {
final NSImage badge = this.iconNamed("unlockedbadge", size);
badge.setName("unlockedbadge");
if(path.isDirectory()) {
return this.folderIcon(size, badge);
}
return this.documentIcon(StringUtils.lowerCase(path.getExtension()), size, badge);
}
if(path.isSymbolicLink()) {
final NSImage badge = this.iconNamed("aliasbadge.tiff", size);
Binary file not shown.