File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
osx/src/main/java/ch/cyberduck/ui/cocoa/controller Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 3434import ch .cyberduck .binding .foundation .NSDictionary ;
3535import ch .cyberduck .binding .foundation .NSNotification ;
3636import ch .cyberduck .binding .foundation .NSNotificationCenter ;
37+ import ch .cyberduck .core .Factory ;
3738import ch .cyberduck .core .LocaleFactory ;
3839import ch .cyberduck .core .ProgressListener ;
3940import 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 ) {
You can’t perform that action at this time.
0 commit comments