Skip to content

Commit 7eb6ce0

Browse files
committed
Use system symbols.
1 parent 340b326 commit 7eb6ce0

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

osx/src/main/java/ch/cyberduck/ui/cocoa/controller/ProgressController.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import ch.cyberduck.binding.foundation.NSDictionary;
3535
import ch.cyberduck.binding.foundation.NSNotification;
3636
import ch.cyberduck.binding.foundation.NSNotificationCenter;
37+
import ch.cyberduck.core.Factory;
3738
import ch.cyberduck.core.LocaleFactory;
3839
import ch.cyberduck.core.ProgressListener;
3940
import ch.cyberduck.core.UserDateFormatterFactory;
@@ -336,7 +337,26 @@ public void setStatusIconView(final NSImageView statusIconView) {
336337

337338
public void setIconImageView(final NSImageView iconImageView) {
338339
this.iconImageView = iconImageView;
339-
this.iconImageView.setImage(IconCacheFactory.<NSImage>get().iconNamed(String.format("transfer-%s.tiff", transfer.getType().name()), 32));
340+
if(!Factory.Platform.osversion.matches("(10)\\..*")) {
341+
switch(transfer.getType()) {
342+
case download:
343+
this.iconImageView.setImage(IconCacheFactory.<NSImage>get().iconNamed("square.and.arrow.down.fill", 64));
344+
break;
345+
case upload:
346+
this.iconImageView.setImage(IconCacheFactory.<NSImage>get().iconNamed("square.and.arrow.up.fill", 64));
347+
break;
348+
case sync:
349+
this.iconImageView.setImage(IconCacheFactory.<NSImage>get().iconNamed("arrow.up.and.down.square.fill", 64));
350+
break;
351+
case copy:
352+
case move:
353+
this.iconImageView.setImage(IconCacheFactory.<NSImage>get().iconNamed("arrow.left.and.right.square.fill", 64));
354+
break;
355+
}
356+
}
357+
else {
358+
this.iconImageView.setImage(IconCacheFactory.<NSImage>get().iconNamed(String.format("transfer-%s.tiff", transfer.getType().name()), 32));
359+
}
340360
}
341361

342362
public void setProgressView(final NSView v) {

0 commit comments

Comments
 (0)