mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Add lock badge icon.
Former-commit-id: 6bf34f4f4bd3e4c5ec70e54d4ab7980f214c9710
This commit is contained in:
+2807
-2782
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.
Reference in New Issue
Block a user