mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use file’s existing icon when zooming it
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
if(self = [super initWithContentRect:aRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO])
|
||||
{
|
||||
NSImageView* imageView = [[[NSImageView alloc] initWithFrame:aRect] autorelease];
|
||||
icon = [[icon copy] autorelease];
|
||||
[icon setSize:NSMakeSize(128, 128)];
|
||||
[imageView setImage:icon];
|
||||
[imageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
||||
[self setContentView:imageView];
|
||||
|
||||
@@ -839,7 +839,7 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot
|
||||
}
|
||||
|
||||
for(FSItem* item in itemsToAnimate)
|
||||
[OakZoomingIcon zoomIcon:[OakFileIconImage fileIconImageWithPath:item.path size:NSMakeSize(128, 128)] fromRect:[self iconFrameForEntry:item]];
|
||||
[OakZoomingIcon zoomIcon:item.icon fromRect:[self iconFrameForEntry:item]];
|
||||
if([urlsToOpen count])
|
||||
[_delegate fileBrowser:self openURLs:urlsToOpen];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user