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

Colored dots for connected/not connected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.