Colored dots for connected/not connected
This commit is contained in:
parent
96a75b88d4
commit
861d78841b
|
@ -127,6 +127,8 @@
|
|||
A2BD40070A09BBEA008CCE96 /* bencode.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D1838B709DEC0430047D688 /* bencode.h */; };
|
||||
A2C655650A04FEDC00E9FD82 /* BottomBorder.png in Resources */ = {isa = PBXBuildFile; fileRef = A2C655640A04FEDC00E9FD82 /* BottomBorder.png */; };
|
||||
A2D0E0490A54A97C003C72CF /* Bandwidth.png in Resources */ = {isa = PBXBuildFile; fileRef = A2D0E0480A54A97C003C72CF /* Bandwidth.png */; };
|
||||
A2D4F0830A915F6600890C32 /* RedDot.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A2D4F0820A915F6600890C32 /* RedDot.tiff */; };
|
||||
A2D4F0850A915F7200890C32 /* GreenDot.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A2D4F0840A915F7200890C32 /* GreenDot.tiff */; };
|
||||
A2F40AE40A361C00006B8288 /* Transmission.icns in Resources */ = {isa = PBXBuildFile; fileRef = 4D2784360905709500687951 /* Transmission.icns */; };
|
||||
A2F6DB090A55F31C0058D1E5 /* SpeedLimitButton.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F6DB070A55F31C0058D1E5 /* SpeedLimitButton.png */; };
|
||||
A2F8951F0A2D4BA500ED2127 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = A2F8951E0A2D4BA500ED2127 /* Credits.rtf */; };
|
||||
|
@ -330,6 +332,8 @@
|
|||
A2AF1C370A3D0F6200F1575D /* FileTableView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileTableView.m; path = macosx/FileTableView.m; sourceTree = "<group>"; };
|
||||
A2C655640A04FEDC00E9FD82 /* BottomBorder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = BottomBorder.png; path = macosx/Images/BottomBorder.png; sourceTree = "<group>"; };
|
||||
A2D0E0480A54A97C003C72CF /* Bandwidth.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Bandwidth.png; path = macosx/Images/Bandwidth.png; sourceTree = "<group>"; };
|
||||
A2D4F0820A915F6600890C32 /* RedDot.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = RedDot.tiff; path = macosx/Images/RedDot.tiff; sourceTree = "<group>"; };
|
||||
A2D4F0840A915F7200890C32 /* GreenDot.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = GreenDot.tiff; path = macosx/Images/GreenDot.tiff; sourceTree = "<group>"; };
|
||||
A2F6DB070A55F31C0058D1E5 /* SpeedLimitButton.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = SpeedLimitButton.png; path = macosx/Images/SpeedLimitButton.png; sourceTree = "<group>"; };
|
||||
A2F8951E0A2D4BA500ED2127 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = Credits.rtf; path = macosx/Credits.rtf; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
@ -440,6 +444,8 @@
|
|||
A2305A7D0A3DC9E400AB2D77 /* ProgressBarBlue.png */,
|
||||
A2305A7E0A3DC9E400AB2D77 /* ProgressBarGray.png */,
|
||||
A2305A7F0A3DC9E400AB2D77 /* ProgressBarGreen.png */,
|
||||
A2D4F0840A915F7200890C32 /* GreenDot.tiff */,
|
||||
A2D4F0820A915F6600890C32 /* RedDot.tiff */,
|
||||
A20AB97A0A5C622A004F81FA /* SmallTurtle.png */,
|
||||
A2D0E0480A54A97C003C72CF /* Bandwidth.png */,
|
||||
A21DFF0F0A292B2B007C5F76 /* Transfers.png */,
|
||||
|
@ -758,6 +764,8 @@
|
|||
A232D29E0A70903E00973B12 /* Filter.png in Resources */,
|
||||
A29597350A72A9E10057248B /* StatusBarBackground.png in Resources */,
|
||||
A259317E0A73B2CC002F4FE7 /* Transmission Help in Resources */,
|
||||
A2D4F0830A915F6600890C32 /* RedDot.tiff in Resources */,
|
||||
A2D4F0850A915F7200890C32 /* GreenDot.tiff in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -30,7 +30,7 @@
|
|||
{
|
||||
NSArray * fTorrents;
|
||||
NSMutableArray * fPeers, * fFiles;
|
||||
NSImage * fAppIcon, * fCheckImage;
|
||||
NSImage * fAppIcon, * fDotGreen, * fDotRed;
|
||||
|
||||
IBOutlet NSTabView * fTabView;
|
||||
|
||||
|
|
|
@ -56,7 +56,8 @@
|
|||
- (void) awakeFromNib
|
||||
{
|
||||
fAppIcon = [[NSApp applicationIconImage] copy];
|
||||
fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];
|
||||
fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
|
||||
fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
|
||||
|
||||
fTorrents = [[NSArray alloc] init];
|
||||
fPeers = [[NSMutableArray alloc] initWithCapacity: 6];
|
||||
|
@ -453,7 +454,7 @@
|
|||
NSDictionary * peer = [fPeers objectAtIndex: row];
|
||||
|
||||
if ([ident isEqualToString: @"Connected"])
|
||||
return [[peer objectForKey: @"Connected"] boolValue] ? fCheckImage : nil;
|
||||
return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed;
|
||||
else if ([ident isEqualToString: @"UL To"])
|
||||
return [[peer objectForKey: @"UL To"] boolValue] ? @"Y" : @"";
|
||||
else if ([ident isEqualToString: @"DL From"])
|
||||
|
|
Loading…
Reference in New Issue