Changeset 782 for trunk/macosx


Ignore:
Timestamp:
Aug 15, 2006, 1:51:45 AM (16 years ago)
Author:
livings124
Message:

Colored dots for connected/not connected

Location:
trunk/macosx
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.h

    r780 r782  
    3131    NSArray * fTorrents;
    3232    NSMutableArray * fPeers, * fFiles;
    33     NSImage * fAppIcon, * fCheckImage;
     33    NSImage * fAppIcon, * fDotGreen, * fDotRed;
    3434   
    3535    IBOutlet NSTabView * fTabView;
  • trunk/macosx/InfoWindowController.m

    r781 r782  
    5757{
    5858    fAppIcon = [[NSApp applicationIconImage] copy];
    59     fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];
     59    fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
     60    fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
    6061   
    6162    fTorrents = [[NSArray alloc] init];
     
    454455       
    455456        if ([ident isEqualToString: @"Connected"])
    456             return [[peer objectForKey: @"Connected"] boolValue] ? fCheckImage : nil;
     457            return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed;
    457458        else if ([ident isEqualToString: @"UL To"])
    458459            return [[peer objectForKey: @"UL To"] boolValue] ? @"Y" : @"";
Note: See TracChangeset for help on using the changeset viewer.