A2DC49A315842F9E00758FF1 /* RevealOff@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49A015842F9D00758FF1 /* RevealOff@2x.png */; };
A2DC49A415842F9E00758FF1 /* RevealOn@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49A115842F9D00758FF1 /* RevealOn@2x.png */; };
A2DC49A815842FC300758FF1 /* ToolbarCreateTemplate@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49A515842FC300758FF1 /* ToolbarCreateTemplate@2x.png */; };
- A2DC49A915842FC300758FF1 /* ToolbarFiltertemplate@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49A615842FC300758FF1 /* ToolbarFiltertemplate@2x.png */; };
+ A2DC49A915842FC300758FF1 /* ToolbarFilterTemplate@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49A615842FC300758FF1 /* ToolbarFilterTemplate@2x.png */; };
A2DC49AA15842FC300758FF1 /* ToolbarInfoTemplate@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49A715842FC300758FF1 /* ToolbarInfoTemplate@2x.png */; };
A2DC49AD15842FF200758FF1 /* ToolbarOpenTemplate@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49AB15842FF200758FF1 /* ToolbarOpenTemplate@2x.png */; };
A2DC49AE15842FF200758FF1 /* ToolbarOpenWebTemplate@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A2DC49AC15842FF200758FF1 /* ToolbarOpenWebTemplate@2x.png */; };
A2DC49A015842F9D00758FF1 /* RevealOff@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "RevealOff@2x.png"; path = "macosx/Images/RevealOff@2x.png"; sourceTree = "<group>"; };
A2DC49A115842F9D00758FF1 /* RevealOn@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "RevealOn@2x.png"; path = "macosx/Images/RevealOn@2x.png"; sourceTree = "<group>"; };
A2DC49A515842FC300758FF1 /* ToolbarCreateTemplate@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "ToolbarCreateTemplate@2x.png"; path = "macosx/Images/ToolbarCreateTemplate@2x.png"; sourceTree = "<group>"; };
- A2DC49A615842FC300758FF1 /* ToolbarFiltertemplate@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "ToolbarFiltertemplate@2x.png"; path = "macosx/Images/ToolbarFiltertemplate@2x.png"; sourceTree = "<group>"; };
+ A2DC49A615842FC300758FF1 /* ToolbarFilterTemplate@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "ToolbarFilterTemplate@2x.png"; path = "macosx/Images/ToolbarFilterTemplate@2x.png"; sourceTree = "<group>"; };
A2DC49A715842FC300758FF1 /* ToolbarInfoTemplate@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "ToolbarInfoTemplate@2x.png"; path = "macosx/Images/ToolbarInfoTemplate@2x.png"; sourceTree = "<group>"; };
A2DC49AB15842FF200758FF1 /* ToolbarOpenTemplate@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "ToolbarOpenTemplate@2x.png"; path = "macosx/Images/ToolbarOpenTemplate@2x.png"; sourceTree = "<group>"; };
A2DC49AC15842FF200758FF1 /* ToolbarOpenWebTemplate@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "ToolbarOpenWebTemplate@2x.png"; path = "macosx/Images/ToolbarOpenWebTemplate@2x.png"; sourceTree = "<group>"; };
4DDFDD21099A5D8E00189D81 /* UploadBadge.png */,
A24B655F0D3F30870079EA4D /* QuitBadge.png */,
A232D29D0A70903E00973B12 /* ToolbarFilterTemplate.png */,
- A2DC49A615842FC300758FF1 /* ToolbarFiltertemplate@2x.png */,
+ A2DC49A615842FC300758FF1 /* ToolbarFilterTemplate@2x.png */,
4DF7500808A103AD007B0D70 /* ToolbarInfoTemplate.png */,
A2DC49A715842FC300758FF1 /* ToolbarInfoTemplate@2x.png */,
4DF7500708A103AD007B0D70 /* ToolbarOpenTemplate.png */,
A2DC49A315842F9E00758FF1 /* RevealOff@2x.png in Resources */,
A2DC49A415842F9E00758FF1 /* RevealOn@2x.png in Resources */,
A2DC49A815842FC300758FF1 /* ToolbarCreateTemplate@2x.png in Resources */,
- A2DC49A915842FC300758FF1 /* ToolbarFiltertemplate@2x.png in Resources */,
+ A2DC49A915842FC300758FF1 /* ToolbarFilterTemplate@2x.png in Resources */,
A2DC49AA15842FC300758FF1 /* ToolbarInfoTemplate@2x.png in Resources */,
A2DC49AD15842FF200758FF1 /* ToolbarOpenTemplate@2x.png in Resources */,
A2DC49AE15842FF200758FF1 /* ToolbarOpenWebTemplate@2x.png in Resources */,
if (fQuitting)
{
- NSImage * quitBadge = [NSImage imageNamed: @"QuitBadge.png"];
+ NSImage * quitBadge = [NSImage imageNamed: @"QuitBadge"];
[self badge: quitBadge string: NSLocalizedString(@"Quitting", "Dock Badger -> quit")
atHeight: (NSHeight(rect) - [quitBadge size].height) * 0.5 adjustForQuit: YES];
return;
CGFloat bottom = 0.0;
if (upload)
{
- NSImage * uploadBadge = [NSImage imageNamed: @"UploadBadge.png"];
+ NSImage * uploadBadge = [NSImage imageNamed: @"UploadBadge"];
[self badge: uploadBadge string: [NSString stringForSpeedAbbrev: fUploadRate] atHeight: bottom adjustForQuit: NO];
if (download)
bottom += [uploadBadge size].height + BETWEEN_PADDING; //download rate above upload rate
}
if (download)
- [self badge: [NSImage imageNamed: @"DownloadBadge.png"] string: [NSString stringForSpeedAbbrev: fDownloadRate]
+ [self badge: [NSImage imageNamed: @"DownloadBadge"] string: [NSString stringForSpeedAbbrev: fDownloadRate]
atHeight: bottom adjustForQuit: NO];
}
return [[GroupsController groups] imageForIndex: group];
}
else if ([ident isEqualToString: @"DL Image"])
- return [NSImage imageNamed: @"DownArrowGroupTemplate.png"];
+ return [NSImage imageNamed: @"DownArrowGroupTemplate"];
else if ([ident isEqualToString: @"UL Image"])
return [NSImage imageNamed: [fDefaults boolForKey: @"DisplayGroupRowRatio"]
- ? @"YingYangGroupTemplate.png" : @"UpArrowGroupTemplate.png"];
+ ? @"YingYangGroupTemplate" : @"UpArrowGroupTemplate"];
else
{
TorrentGroup * group = (TorrentGroup *)item;
[item setLabel: NSLocalizedString(@"Create", "Create toolbar item -> label")];
[item setPaletteLabel: NSLocalizedString(@"Create Torrent File", "Create toolbar item -> palette label")];
[item setToolTip: NSLocalizedString(@"Create torrent file", "Create toolbar item -> tooltip")];
- [item setImage: [NSImage imageNamed: @"ToolbarCreateTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"ToolbarCreateTemplate"]];
[item setTarget: self];
[item setAction: @selector(createFile:)];
[item setAutovalidates: NO];
[item setLabel: NSLocalizedString(@"Open", "Open toolbar item -> label")];
[item setPaletteLabel: NSLocalizedString(@"Open Torrent Files", "Open toolbar item -> palette label")];
[item setToolTip: NSLocalizedString(@"Open torrent files", "Open toolbar item -> tooltip")];
- [item setImage: [NSImage imageNamed: @"ToolbarOpenTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"ToolbarOpenTemplate"]];
[item setTarget: self];
[item setAction: @selector(openShowSheet:)];
[item setAutovalidates: NO];
[item setLabel: NSLocalizedString(@"Open Address", "Open address toolbar item -> label")];
[item setPaletteLabel: NSLocalizedString(@"Open Torrent Address", "Open address toolbar item -> palette label")];
[item setToolTip: NSLocalizedString(@"Open torrent web address", "Open address toolbar item -> tooltip")];
- [item setImage: [NSImage imageNamed: @"ToolbarOpenWebTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"ToolbarOpenWebTemplate"]];
[item setTarget: self];
[item setAction: @selector(openURLShowSheet:)];
[item setAutovalidates: NO];
[item setLabel: NSLocalizedString(@"Remove", "Remove toolbar item -> label")];
[item setPaletteLabel: NSLocalizedString(@"Remove Selected", "Remove toolbar item -> palette label")];
[item setToolTip: NSLocalizedString(@"Remove selected transfers", "Remove toolbar item -> tooltip")];
- [item setImage: [NSImage imageNamed: @"ToolbarRemoveTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"ToolbarRemoveTemplate"]];
[item setTarget: self];
[item setAction: @selector(removeNoDelete:)];
[item setVisibilityPriority: NSToolbarItemVisibilityPriorityHigh];
[item setLabel: NSLocalizedString(@"Inspector", "Inspector toolbar item -> label")];
[item setPaletteLabel: NSLocalizedString(@"Toggle Inspector", "Inspector toolbar item -> palette label")];
[item setToolTip: NSLocalizedString(@"Toggle the torrent inspector", "Inspector toolbar item -> tooltip")];
- [item setImage: [NSImage imageNamed: @"ToolbarInfoTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"ToolbarInfoTemplate"]];
[item setTarget: self];
[item setAction: @selector(showInfo:)];
[groupItem setIdentifiers: [NSArray arrayWithObjects: TOOLBAR_PAUSE_ALL, TOOLBAR_RESUME_ALL, nil]];
[segmentedCell setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
- [segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseAllTemplate.png"] forSegment: TOOLBAR_PAUSE_TAG];
+ [segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseAllTemplate"] forSegment: TOOLBAR_PAUSE_TAG];
[segmentedCell setToolTip: NSLocalizedString(@"Pause all transfers",
"All toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
[segmentedCell setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
- [segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeAllTemplate.png"] forSegment: TOOLBAR_RESUME_TAG];
+ [segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeAllTemplate"] forSegment: TOOLBAR_RESUME_TAG];
[segmentedCell setToolTip: NSLocalizedString(@"Resume all transfers",
"All toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
[groupItem setIdentifiers: [NSArray arrayWithObjects: TOOLBAR_PAUSE_SELECTED, TOOLBAR_RESUME_SELECTED, nil]];
[segmentedCell setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
- [segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseSelectedTemplate.png"] forSegment: TOOLBAR_PAUSE_TAG];
+ [segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseSelectedTemplate"] forSegment: TOOLBAR_PAUSE_TAG];
[segmentedCell setToolTip: NSLocalizedString(@"Pause selected transfers",
"Selected toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
[segmentedCell setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
- [segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeSelectedTemplate.png"] forSegment: TOOLBAR_RESUME_TAG];
+ [segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeSelectedTemplate"] forSegment: TOOLBAR_RESUME_TAG];
[segmentedCell setToolTip: NSLocalizedString(@"Resume selected transfers",
"Selected toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
[item setLabel: NSLocalizedString(@"Filter", "Filter toolbar item -> label")];
[item setPaletteLabel: NSLocalizedString(@"Toggle Filter", "Filter toolbar item -> palette label")];
[item setToolTip: NSLocalizedString(@"Toggle the filter bar", "Filter toolbar item -> tooltip")];
- [item setImage: [NSImage imageNamed: @"ToolbarFilterTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"ToolbarFilterTemplate"]];
[item setTarget: self];
[item setAction: @selector(toggleFilterBar:)];
- (void) setFile: (NSString *) file
{
- [[self contentView] setOverlay: [NSImage imageNamed: @"CreateLarge.png"]
+ [[self contentView] setOverlay: [NSImage imageNamed: @"CreateLarge"]
mainLine: NSLocalizedString(@"Create a Torrent File", "Drag overlay -> file") subLine: file];
[self fadeIn];
}
- (void) setURL: (NSString *) url
{
- [[self contentView] setOverlay: [NSImage imageNamed: @"Globe.png"]
+ [[self contentView] setOverlay: [NSImage imageNamed: @"Globe"]
mainLine: NSLocalizedString(@"Web Address", "Drag overlay -> url") subLine: url];
[self fadeIn];
}
action: @selector(setPriority:) keyEquivalent: @""];
[item setTarget: self];
[item setTag: FILE_PRIORITY_HIGH_TAG];
- [item setImage: [NSImage imageNamed: @"PriorityHighTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"PriorityHighTemplate"]];
[priorityMenu addItem: item];
[item release];
action: @selector(setPriority:) keyEquivalent: @""];
[item setTarget: self];
[item setTag: FILE_PRIORITY_NORMAL_TAG];
- [item setImage: [NSImage imageNamed: @"PriorityNormalTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"PriorityNormalTemplate"]];
[priorityMenu addItem: item];
[item release];
action: @selector(setPriority:) keyEquivalent: @""];
[item setTarget: self];
[item setTag: FILE_PRIORITY_LOW_TAG];
- [item setImage: [NSImage imageNamed: @"PriorityLowTemplate.png"]];
+ [item setImage: [NSImage imageNamed: @"PriorityLowTemplate"]];
[priorityMenu addItem: item];
[item release];
[self setWidth: 9.0f forSegment: i]; //9 is minimum size to get proper look
}
- [self setImage: [NSImage imageNamed: @"PriorityControlLow.png"] forSegment: 0];
- [self setImage: [NSImage imageNamed: @"PriorityControlNormal.png"] forSegment: 1];
- [self setImage: [NSImage imageNamed: @"PriorityControlHigh.png"] forSegment: 2];
+ [self setImage: [NSImage imageNamed: @"PriorityControlLow"] forSegment: 0];
+ [self setImage: [NSImage imageNamed: @"PriorityControlNormal"] forSegment: 1];
+ [self setImage: [NSImage imageNamed: @"PriorityControlHigh"] forSegment: 2];
fHoverRow = NO;
}
{
//if ([self backgroundStyle] != NSBackgroundStyleDark)
{
- NSImage * image = [[NSImage imageNamed: @"PriorityNormalTemplate.png"] imageWithColor: [NSColor lightGrayColor]];
+ NSImage * image = [[NSImage imageNamed: @"PriorityNormalTemplate"] imageWithColor: [NSColor lightGrayColor]];
[images addObject: image];
totalWidth = [image size].width;
}
totalWidth = 0.0;
if ([priorities containsObject: [NSNumber numberWithInteger: TR_PRI_LOW]])
{
- NSImage * image = [[NSImage imageNamed: @"PriorityLowTemplate.png"] imageWithColor: priorityColor];
+ NSImage * image = [[NSImage imageNamed: @"PriorityLowTemplate"] imageWithColor: priorityColor];
[images addObject: image];
totalWidth += [image size].width;
}
if ([priorities containsObject: [NSNumber numberWithInteger: TR_PRI_NORMAL]])
{
- NSImage * image = [[NSImage imageNamed: @"PriorityNormalTemplate.png"] imageWithColor: priorityColor];
+ NSImage * image = [[NSImage imageNamed: @"PriorityNormalTemplate"] imageWithColor: priorityColor];
[images addObject: image];
totalWidth += [image size].width;
}
if ([priorities containsObject: [NSNumber numberWithInteger: TR_PRI_HIGH]])
{
- NSImage * image = [[NSImage imageNamed: @"PriorityHighTemplate.png"] imageWithColor: priorityColor];
+ NSImage * image = [[NSImage imageNamed: @"PriorityHighTemplate"] imageWithColor: priorityColor];
[images addObject: image];
totalWidth += [image size].width;
}
NSString * toolTip;
if (groupIndex == GROUP_FILTER_ALL_TAG)
{
- icon = [NSImage imageNamed: @"PinTemplate.png"];
+ icon = [NSImage imageNamed: @"PinTemplate"];
toolTip = NSLocalizedString(@"All Groups", "Groups -> Button");
}
else
{
NSInteger orderIndex = [self rowValueForIndex: index];
return orderIndex != -1 ? [self imageForGroup: [fGroups objectAtIndex: orderIndex]]
- : [NSImage imageNamed: @"GroupsNoneTemplate.png"];
+ : [NSImage imageNamed: @"GroupsNoneTemplate"];
}
- (NSColor *) colorForIndex: (NSInteger) index
[item setTarget: target];
[item setTag: -1];
- NSImage * icon = [NSImage imageNamed: @"GroupsNoneTemplate.png"];
+ NSImage * icon = [NSImage imageNamed: @"GroupsNoneTemplate"];
if (small)
{
icon = [icon copy];
NSDictionary * peer = [fPeers objectAtIndex: row];
if ([ident isEqualToString: @"Encryption"])
- return [[peer objectForKey: @"Encryption"] boolValue] ? [NSImage imageNamed: @"Lock.png"] : nil;
+ return [[peer objectForKey: @"Encryption"] boolValue] ? [NSImage imageNamed: @"Lock"] : nil;
else if ([ident isEqualToString: @"Client"])
return [peer objectForKey: @"Client"];
else if ([ident isEqualToString: @"Progress"])
switch (level)
{
case TR_MSG_ERR:
- return [NSImage imageNamed: @"RedDot.png"];
+ return [NSImage imageNamed: @"RedDot"];
case TR_MSG_INF:
- return [NSImage imageNamed: @"YellowDot.png"];
+ return [NSImage imageNamed: @"YellowDot"];
case TR_MSG_DBG:
- return [NSImage imageNamed: @"PurpleDot.png"];
+ return [NSImage imageNamed: @"PurpleDot"];
default:
NSAssert1(NO, @"Unknown message log level: %d", level);
return nil;
[super drawWithFrame: cellFrame inView: controlView];
if (fSeed)
{
- NSImage * checkImage = [NSImage imageNamed: @"CompleteCheck.png"];
+ NSImage * checkImage = [NSImage imageNamed: @"CompleteCheck"];
const NSSize imageSize = [checkImage size];
const NSRect rect = NSMakeRect(floor(NSMidX(cellFrame) - imageSize.width * 0.5),
else if ([ident isEqualToString: TOOLBAR_TRANSFERS])
{
[item setLabel: NSLocalizedString(@"Transfers", "Preferences -> toolbar item title")];
- [item setImage: [NSImage imageNamed: @"Transfers.png"]];
+ [item setImage: [NSImage imageNamed: @"Transfers"]];
[item setTarget: self];
[item setAction: @selector(setPrefView:)];
[item setAutovalidates: NO];
else if ([ident isEqualToString: TOOLBAR_GROUPS])
{
[item setLabel: NSLocalizedString(@"Groups", "Preferences -> toolbar item title")];
- [item setImage: [NSImage imageNamed: @"Groups.png"]];
+ [item setImage: [NSImage imageNamed: @"Groups"]];
[item setTarget: self];
[item setAction: @selector(setPrefView:)];
[item setAutovalidates: NO];
else if ([ident isEqualToString: TOOLBAR_BANDWIDTH])
{
[item setLabel: NSLocalizedString(@"Bandwidth", "Preferences -> toolbar item title")];
- [item setImage: [NSImage imageNamed: @"Bandwidth.png"]];
+ [item setImage: [NSImage imageNamed: @"Bandwidth"]];
[item setTarget: self];
[item setAction: @selector(setPrefView:)];
[item setAutovalidates: NO];
else if ([ident isEqualToString: TOOLBAR_REMOTE])
{
[item setLabel: NSLocalizedString(@"Remote", "Preferences -> toolbar item title")];
- [item setImage: [NSImage imageNamed: @"Remote.png"]];
+ [item setImage: [NSImage imageNamed: @"Remote"]];
[item setTarget: self];
[item setAction: @selector(setPrefView:)];
[item setAutovalidates: NO];
{
case PORT_STATUS_OPEN:
[fPortStatusField setStringValue: NSLocalizedString(@"Port is open", "Preferences -> Network -> port status")];
- [fPortStatusImage setImage: [NSImage imageNamed: @"GreenDot.png"]];
+ [fPortStatusImage setImage: [NSImage imageNamed: @"GreenDot"]];
break;
case PORT_STATUS_CLOSED:
[fPortStatusField setStringValue: NSLocalizedString(@"Port is closed", "Preferences -> Network -> port status")];
- [fPortStatusImage setImage: [NSImage imageNamed: @"RedDot.png"]];
+ [fPortStatusImage setImage: [NSImage imageNamed: @"RedDot"]];
break;
case PORT_STATUS_ERROR:
[fPortStatusField setStringValue: NSLocalizedString(@"Port check site is down", "Preferences -> Network -> port status")];
- [fPortStatusImage setImage: [NSImage imageNamed: @"YellowDot.png"]];
+ [fPortStatusImage setImage: [NSImage imageNamed: @"YellowDot"]];
break;
default:
NSAssert1(NO, @"Port checker returned invalid status: %d", [fPortChecker status]);
- (NSImage *) icon
{
if ([self isMagnet])
- return [NSImage imageNamed: @"Magnet.png"];
+ return [NSImage imageNamed: @"Magnet"];
#warning replace kGenericFolderIcon stuff with NSImageNameFolder on 10.6
if (!fIcon)
//control button
NSString * controlImageSuffix;
if (fMouseDownControlButton)
- controlImageSuffix = @"On.png";
+ controlImageSuffix = @"On";
else if (!fTracking && fHoverControl)
- controlImageSuffix = @"Hover.png";
+ controlImageSuffix = @"Hover";
else
- controlImageSuffix = @"Off.png";
+ controlImageSuffix = @"Off";
NSImage * controlImage;
if ([torrent isActive])
//reveal button
NSString * revealImageString;
if (fMouseDownRevealButton)
- revealImageString = @"RevealOn.png";
+ revealImageString = @"RevealOn";
else if (!fTracking && fHoverReveal)
- revealImageString = @"RevealHover.png";
+ revealImageString = @"RevealHover";
else
- revealImageString = @"RevealOff.png";
+ revealImageString = @"RevealOff";
NSImage * revealImage = [NSImage imageNamed: revealImageString];
[revealImage drawInRect: [self revealButtonRectForBounds: cellFrame] fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0 respectFlipped: YES hints: nil];
NSString * actionImageString;
if (fMouseDownActionButton)
#warning we can get rid of this on 10.7
- actionImageString = @"ActionOn.png";
+ actionImageString = @"ActionOn";
else if (!fTracking && fHoverAction)
- actionImageString = @"ActionHover.png";
+ actionImageString = @"ActionHover";
else
actionImageString = nil;
PRIORITY_ICON_WIDTH, PRIORITY_ICON_HEIGHT);
NSColor * priorityColor = [self backgroundStyle] == NSBackgroundStyleDark ? [NSColor whiteColor] : [NSColor darkGrayColor];
- NSImage * priorityImage = [[NSImage imageNamed: ([torrent priority] == TR_PRI_HIGH ? @"PriorityHighTemplate.png" : @"PriorityLowTemplate.png")] imageWithColor: priorityColor];
+ NSImage * priorityImage = [[NSImage imageNamed: ([torrent priority] == TR_PRI_HIGH ? @"PriorityHighTemplate" : @"PriorityLowTemplate")] imageWithColor: priorityColor];
[priorityImage drawInRect: priorityRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0 respectFlipped: YES hints: nil];
}
}
}
- return (icon && icon != [NSNull null]) ? icon : [NSImage imageNamed: @"FavIcon.png"];
+ return (icon && icon != [NSNull null]) ? icon : [NSImage imageNamed: @"FavIcon"];
}
#warning better favicon detection